/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.bitcoin-logo {
    width: 50px;
    height: 50px;
}

.site-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #eb9925;
}

/* Burger Menu */
.burger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #eb9925;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 10000;
    transition: all 0.3s;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s;
}

.burger-menu:hover {
    background-color: #d68820;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: #1d222b;
    z-index: 9999;
    transition: right 0.3s;
    overflow-y: auto;
    padding-top: 80px;
}

.side-menu.active {
    right: 0;
}

.menu-items {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.menu-item {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    margin-bottom: 10px;
    background-color: #eb9925;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 500;
}

.menu-item:hover,
.menu-item.active {
    background-color: #d68820;
    transform: translateX(-5px);
}

/* Page Title */
.page-title {
    background-color: #1d222b;
    color: white;
    padding: 30px 0;
    text-align: center;
}

.page-title h1 {
    font-size: 2rem;
    font-weight: 700;
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

/* Upload Section */
.upload-section {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.upload-label {
    display: block;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.file-input-wrapper {
    background-color: #27a545;
    padding: 15px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.file-input {
    display: none;
}

.file-button {
    background-color: white;
    color: #27a545;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    margin: 0;
}

.file-button:hover {
    background-color: #f0f0f0;
}

.file-name {
    color: white;
    font-weight: 500;
}

.validate-button {
    background-color: #27a545;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    max-width: 300px;
}

.validate-button:hover {
    background-color: #1e8e3b;
}

.validate-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* Progress Bar */
.progress-container {
    margin-top: 20px;
    background-color: #f0f0f0;
    border-radius: 5px;
    position: relative;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: #27a545;
    border-radius: 5px;
    position: absolute;
    left: 0;
    top: 0;
    transition: width 0.3s;
}

.progress-text {
    position: relative;
    z-index: 2;
    color: #333;
    font-weight: 600;
}

/* Result Sections */
.result-section {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.section-header {
    background-color: #1d222b;
    color: white;
    padding: 15px 20px;
    margin: -30px -30px 20px -30px;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.hash-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    text-align: center;
    background-color: #f8f9fa;
    font-size: 0.9rem;
}

/* Table */
.table-wrapper {
    overflow-x: auto;
}

.wallet-table {
    width: 100%;
    border-collapse: collapse;
}

.wallet-table thead {
    background-color: #f8f9fa;
}

.wallet-table th,
.wallet-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.wallet-table th {
    font-weight: 600;
    color: #1d222b;
}

.wallet-table td {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    word-break: break-all;
}

.wallet-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Contact Section */
.contact-section {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 80px;
    height: 80px;
}

.contact-content h3 {
    color: #1d222b;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.contact-content p {
    color: #666;
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: #1a2536;
    color: white;
    padding: 30px 0;
    margin-top: 40px;
    text-align: center;
}

.footer p {
    margin-bottom: 10px;
}

.bitcoin-price {
    margin: 20px 0;
    font-size: 1.1rem;
}

.bitcoin-price span {
    color: #27a545;
    font-weight: 600;
}

.moderator-login {
    margin: 20px 0;
}

.moderator-login a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.moderator-login a:hover {
    color: #eb9925;
}

.copyright {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.copyright strong {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 5px;
}

.tagline {
    color: #ffff00;
    font-weight: 600;
    display: block;
    margin-top: 5px;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #27a545;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-brand {
        font-size: 1.2rem;
    }

    .bitcoin-logo {
        width: 40px;
        height: 40px;
    }

    .page-title h1 {
        font-size: 1.5rem;
    }

    .upload-section,
    .result-section,
    .contact-section {
        padding: 20px;
    }

    .section-header {
        margin: -20px -20px 15px -20px;
    }

    .contact-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .wallet-table {
        font-size: 0.8rem;
    }

    .wallet-table th,
    .wallet-table td {
        padding: 8px 4px;
    }
}
