/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #1a1a1a;
    color: #9e9e9e;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: #1997c6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    cursor: pointer;
}

/* Header Styles */
.header {
    background-color: #222;
    padding: 15px 0;
    border-bottom: 1px solid #2d2d2d;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

.logo-part1 {
    color: #afafaf;
}

.logo-part2 {
    color: #ffffff;
    text-shadow: 2px 4px 3px rgba(0,0,0,0.3);
}

.header-right {
    display: flex;
    align-items: center;
}

.wallet-info {
    margin-right: 20px;
    opacity: 0.8;
    font-family: 'Roboto Condensed', sans-serif;
    color: #f1f1f1;
}

.account-icon img {
    width: 24px;
    height: 24px;
    opacity: 0.8;
}

/* Navigation Styles */
.nav-container {
    background-color: #2a2a2a;
    border-bottom: 1px solid #2d2d2d;
}

.main-nav {
    display: flex;
    list-style: none;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 15px;
    color: #cacacc;
    text-decoration: none;
}

.main-nav a:hover, .main-nav a.active {
    background-color: #333;
}

/* Main Content Styles */
.main-content {
    padding: 40px 0;
}

.page-title h1 {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 10px;
    text-align: center;
}

.page-subtitle {
    text-align: center;
    margin-bottom: 40px;
}

.page-subtitle h2 {
    color: #9e9e9e;
    font-size: 18px;
    margin-bottom: 10px;
}

/* Speed Container */
.speed-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    background-color: #222;
    border: 1px solid #2d2d2d;
    padding: 30px;
    border-radius: 5px;
}

.speed-display {
    display: flex;
    align-items: baseline;
    margin-bottom: 30px;
}

.speed-value {
    font-size: 64px;
    color: #4CAF50;
    font-weight: bold;
    font-family: 'Roboto Condensed', sans-serif;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.speed-label {
    font-size: 24px;
    color: #9e9e9e;
    margin-left: 10px;
}

.speed-controls {
    display: flex;
    gap: 20px;
}

.action-btn {
    padding: 12px 24px;
    background: linear-gradient(#333, #222);
    color: #ccc;
    border: 1px solid #252323;
    border-radius: 3px;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: linear-gradient(#414c91, #253074);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.action-btn:disabled {
    background: linear-gradient(#2a2a2a, #222);
    color: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 40px;
}

.progress-bar-container {
    width: 100%;
    height: 20px;
    background-color: #333;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.speed-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-scale {
    display: flex;
    justify-content: space-between;
    padding: 0 5px;
}

.scale-marker {
    color: #777;
    font-size: 12px;
}

/* Stats Container */
.stats-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.stat-box {
    flex: 1;
    background-color: #222;
    border: 1px solid #2d2d2d;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.stat-label {
    color: #777;
    font-size: 16px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 28px;
    color: #ffffff;
    font-weight: bold;
    font-family: 'Roboto Condensed', sans-serif;
}

.stat-unit {
    color: #777;
    font-size: 16px;
    display: inline-block;
    margin-left: 5px;
}

/* Bitcoin Addresses Found Section */
.addresses-container {
    background-color: #222;
    border: 1px solid #2d2d2d;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 40px;
}

.addresses-container h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 18px;
}

.addresses-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.address-count {
    color: #9e9e9e;
}

.address-count span {
    color: #4CAF50;
    font-weight: bold;
}

.total-balance {
    color: #9e9e9e;
}

.total-balance span {
    color: #F9A825;
    font-weight: bold;
}

.addresses-table-container {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.addresses-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.addresses-table th {
    background-color: #2a2a2a;
    color: #ccc;
    text-align: left;
    padding: 10px;
    position: sticky;
    top: 0;
}

.addresses-table td {
    padding: 10px;
    border-bottom: 1px solid #333;
    color: #9e9e9e;
}

.addresses-table tr:hover {
    background-color: #2a2a2a;
}

.address-cell {
    font-family: monospace;
    word-break: break-all;
}

.address-cell a {
    color: #64B5F6;
    text-decoration: none;
}

.address-cell a:hover {
    text-decoration: underline;
}

.private-key-cell {
    font-family: monospace;
    word-break: break-all;
}

.balance-cell {
    color: #F9A825;
    font-weight: bold;
    text-align: right;
}

.usd-value-cell {
    color: #4CAF50;
    text-align: right;
}

.empty-message {
    text-align: center;
    padding: 20px;
    color: #777;
    font-style: italic;
}

.loading-message {
    text-align: center;
    padding: 15px;
    color: #64B5F6;
    font-style: italic;
    background-color: rgba(33, 150, 243, 0.1);
    border-radius: 3px;
}

.data-source-indicator {
    display: inline-block;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
    margin-left: 8px;
    vertical-align: middle;
}

.real-data {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.simulated-data {
    background-color: rgba(255, 152, 0, 0.2);
    color: #FF9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

/* Details Container */
.details-container {
    background-color: #222;
    border: 1px solid #2d2d2d;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 40px;
}

.details-container h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 18px;
}

.detail-row {
    display: flex;
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.detail-label {
    flex: 0 0 150px;
    color: #777;
}

.detail-value {
    flex: 1;
    color: #ccc;
    font-family: monospace;
    word-break: break-all;
}

/* Info Container */
.info-container {
    background-color: #222;
    border: 1px solid #2d2d2d;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 40px;
}

.info-container h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 18px;
}

.info-container p {
    color: #9e9e9e;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.blockchain-badge {
    display: inline-block;
    background-color: #1E88E5;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 5px;
}

/* Footer */
footer {
    background-color: #222;
    padding: 30px 0;
    border-top: 1px solid #2d2d2d;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-link {
    margin: 0 15px;
    color: #757575;
    cursor: pointer;
}

.footer-copyright {
    text-align: center;
    color: #757575;
    font-size: 14px;
    padding: 0 15px;
}

/* Private Key Locking Styles */
.key-container {
    position: relative;
}

.hidden-key {
    color: #64B5F6;
    word-break: break-all;
    font-family: monospace;
}

.locked-message {
    display: flex;
    align-items: center;
    color: #757575;
    font-style: italic;
    margin-bottom: 5px;
}

.lock-icon {
    margin-right: 5px;
    font-style: normal;
}

.payment-btn {
    background-color: #F9A825;
    color: #222;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-btn:hover {
    background-color: #FBC02D;
    transform: translateY(-1px);
}

/* Transaction ID Styles */
.transaction-id-container {
    margin-top: 10px;
    padding: 8px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 3px;
    border-left: 3px solid #4CAF50;
}

.transaction-id-label {
    color: #4CAF50;
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 3px;
}

.transaction-id-value {
    color: #ccc;
    font-family: monospace;
    font-size: 12px;
    word-break: break-all;
}

.transaction-id-input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 3px;
    color: #fff;
    font-family: monospace;
}

.transaction-id-input:focus {
    outline: none;
    border-color: #1E88E5;
    box-shadow: 0 0 5px rgba(30, 136, 229, 0.5);
}

.transaction-note {
    font-style: italic;
    color: #757575;
    font-size: 12px;
    margin-bottom: 15px;
}

/* Payment Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #222;
    border-radius: 5px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
}

.modal-header h3 {
    color: #fff;
    margin: 0;
}

.close-modal {
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #fff;
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    color: #9e9e9e;
    margin-bottom: 15px;
}

.modal-address {
    background-color: #333;
    padding: 10px;
    border-radius: 3px;
    font-family: monospace;
    color: #64B5F6;
    margin-bottom: 20px;
    word-break: break-all;
}

.payment-address {
    background-color: #333;
    padding: 10px;
    border-radius: 3px;
    font-family: monospace;
    color: #F9A825;
    margin-bottom: 15px;
    text-align: center;
    word-break: break-all;
}

.payment-note {
    font-style: italic;
    color: #757575;
    text-align: center;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px;
    border-top: 1px solid #333;
    gap: 10px;
}

.simulate-payment-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.simulate-payment-btn:hover {
    background-color: #45a049;
}

.cancel-payment-btn {
    background-color: #555;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cancel-payment-btn:hover {
    background-color: #666;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .speed-display {
        flex-direction: column;
        align-items: center;
    }
    
    .speed-label {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .stats-container {
        flex-direction: column;
    }
    
    .detail-row {
        flex-direction: column;
    }
    
    .detail-label {
        margin-bottom: 5px;
    }
    
    .speed-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .action-btn {
        width: 100%;
    }
    
    .addresses-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .addresses-table {
        font-size: 12px;
    }
    
    .addresses-table th, 
    .addresses-table td {
        padding: 8px 5px;
    }
    
    .modal-content {
        width: 95%;
    }
}