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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
}

body.dark-theme {
    background: #181A20;
    color: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.btn {
    display: block;
    width: 200px;
    margin: 20px auto;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

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

.hidden {
    display: none;
}

#wallet-info {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

#transfer-status {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background-color: #e9ecef;
    border-radius: 5px;
}

#status-message {
    font-weight: bold;
}

.sidebar {
    width: 220px;
    background: #23263A;
    min-height: 100vh;
    padding: 30px 0 0 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10;
}
.logo {
    color: #FF6B00;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
}
.nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav li {
    padding: 15px 30px;
    color: #b0b3c6;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-size: 1.1rem;
}
.nav li.active, .nav li:hover {
    background: #181A20;
    color: #fff;
}

.main-content {
    margin-left: 220px;
    width: 100%;
    min-height: 100vh;
    background: #181A20;
    padding: 0 40px 40px 40px;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0 10px 0;
}
.search-bar input {
    background: #23263A;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    color: #fff;
    font-size: 1rem;
    width: 200px;
}
.user-info {
    display: flex;
    align-items: center;
}
.user-name {
    margin-right: 10px;
    font-weight: 500;
}
.user-avatar {
    width: 36px;
    height: 36px;
    background: #FF6B00;
    border-radius: 50%;
    display: inline-block;
}
.dashboard h2 {
    margin: 30px 0 20px 0;
    font-size: 2rem;
    color: #fff;
}
.balances {
    display: flex;
    gap: 24px;
    margin-bottom: 30px;
}
.balance-card {
    background: #23263A;
    border-radius: 12px;
    padding: 24px 32px;
    flex: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.balance-card .label {
    color: #b0b3c6;
    font-size: 1rem;
    margin-bottom: 8px;
}
.balance-card .value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}
.coins-list {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}
.coin-card {
    background: #23263A;
    border-radius: 10px;
    padding: 18px 24px;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.coin-name {
    color: #FF6B00;
    font-weight: 600;
    margin-bottom: 8px;
}
.coin-balance {
    font-size: 1.2rem;
    color: #fff;
}
.send-section {
    background: #23263A;
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    max-width: 500px;
}
.send-section h3 {
    margin-bottom: 18px;
    color: #fff;
}
#send-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
#send-form label {
    color: #b0b3c6;
    font-size: 1rem;
}
#send-form input, #send-form select {
    background: #181A20;
    border: 1px solid #33364a;
    border-radius: 6px;
    padding: 8px 12px;
    color: #fff;
    font-size: 1rem;
}
.btn {
    background: #FF6B00;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 10px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn:hover {
    background: #ff8c1a;
}
#wallet-info, #transfer-status {
    margin-top: 18px;
    background: #181A20;
    border-radius: 6px;
    padding: 10px 16px;
    color: #fff;
}
#status-message {
    font-weight: bold;
}

@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 60px;
        padding: 10px 0 0 0;
        z-index: 100;
    }
    .sidebar .logo {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    .sidebar ul li {
        padding: 12px 10px;
        font-size: 1.1rem;
        justify-content: center;
    }
    .sidebar ul li span, .sidebar .logo {
        display: none;
    }
    .main-content {
        margin-left: 60px;
        padding: 10px;
    }
    .dashboard-cards, .dashboard-widgets {
        flex-direction: column;
        gap: 12px;
    }
    .widget, .exchange-widget {
        max-width: 100%;
        min-width: 0;
    }
}
@media (max-width: 600px) {
    .main-content {
        margin-left: 0;
        padding: 4px;
    }
    .sidebar {
        position: static;
        width: 100vw;
        height: auto;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0 4px;
    }
    .sidebar ul {
        display: flex;
        flex-direction: row;
        gap: 0;
    }
    .sidebar ul li {
        padding: 8px 6px;
        font-size: 1rem;
    }
    .dashboard-cards, .dashboard-widgets {
        flex-direction: column;
        gap: 8px;
    }
    .widget, .exchange-widget {
        padding: 10px 4px;
    }
    .market-table th, .market-table td {
        padding: 8px 4px;
        font-size: 0.95rem;
    }
    .top-bar {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    .search-box {
        width: 100%;
        font-size: 0.95rem;
    }
    .user-profile .avatar {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

/* --- Admin Login Modern Styles --- */
.admin-login-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(120deg, #757f9a 0%, #232526 100%);
    position: relative;
    overflow: hidden;
}
.admin-login-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: inherit;
    filter: blur(8px);
    z-index: 0;
}
.admin-login-card {
    position: relative;
    z-index: 1;
    background: rgba(40, 44, 52, 0.85);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(44, 45, 80, 0.25);
    padding: 48px 36px 32px 36px;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(2px);
}
.login-camera-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    margin: 0 auto 32px auto;
    font-size: 2.5rem;
    color: #bfc2e2;
    border: 2px solid rgba(255,255,255,0.12);
}
.admin-form-modern {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.login-icon-input {
    position: relative;
    width: 100%;
}
.login-icon-input i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #bfc2e2;
    font-size: 1.2rem;
    pointer-events: none;
}
.login-icon-input input {
    width: 100%;
    background: rgba(30, 32, 38, 0.95);
    border: none;
    border-radius: 6px;
    padding: 0 16px 0 48px;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 500;
    outline: none;
    height: 54px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: box-shadow 0.2s, background 0.2s;
}
.login-icon-input input:focus {
    box-shadow: 0 0 0 2px #1de9ff;
    background: rgba(30, 32, 38, 1);
}
.login-icon-input input::placeholder {
    color: #bfc2e2;
    font-weight: 500;
    opacity: 1;
    font-size: 1.08rem;
}
.btn-modern {
    background: #bfc2e2;
    color: #232526;
    border: none;
    border-radius: 6px;
    padding: 0;
    font-size: 1.15rem;
    font-weight: 600;
    height: 54px;
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    letter-spacing: 2px;
}
.btn-modern:hover {
    background: #fff;
    color: #232526;
}
.remember-forgot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    width: 100%;
}
.remember-forgot label {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #bfc2e2;
    cursor: pointer;
}
.remember-forgot input[type="checkbox"] {
    margin-right: 6px;
    accent-color: #bfc2e2;
}
.remember-forgot a {
    color: #bfc2e2;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}
.remember-forgot a:hover {
    color: #fff;
}

@media (max-width: 700px) {
    .admin-login-card {
        padding: 32px 10px 24px 10px;
        max-width: 98vw;
    }
    .admin-login-actions {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin-top: 18px;
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Enhanced Card Styles */
.balance-card, .coin-card {
    transition: transform 0.2s, box-shadow 0.2s;
    animation: fadeIn 0.3s ease-out;
}

.balance-card:hover, .coin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Form Enhancements */
input, select {
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Button Enhancements */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(1px);
}

/* Status Messages */
#transfer-status {
    animation: slideIn 0.3s ease-out;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

#transfer-status.error {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid #e74c3c;
}

#transfer-status.success {
    background-color: rgba(46, 204, 113, 0.1);
    border: 1px solid #2ecc71;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        padding: 1rem 0.5rem;
    }

    .sidebar .logo {
        font-size: 0.8rem;
    }

    .sidebar .nav li {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .main-content {
        margin-left: 60px;
    }

    .balances {
        flex-direction: column;
    }

    .balance-card {
        width: 100%;
        margin: 0.5rem 0;
    }

    .coins-list {
        grid-template-columns: 1fr;
    }

    .send-section {
        padding: 1rem;
    }

    .send-section form {
        grid-template-columns: 1fr;
    }
}

/* Dark Theme Enhancements */
.dark-theme {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-color: #3498db;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
}

.dark-theme .balance-card,
.dark-theme .coin-card {
    background: var(--bg-secondary);
    border: 1px solid #3d3d3d;
}

.dark-theme input,
.dark-theme select {
    background: var(--bg-primary);
    border-color: #3d3d3d;
    color: var(--text-primary);
}

.dark-theme .btn {
    background: var(--accent-color);
    color: white;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus States */
:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .sidebar,
    .header,
    .send-section {
        display: none;
    }

    .main-content {
        margin: 0;
        padding: 0;
    }

    .balance-card,
    .coin-card {
        break-inside: avoid;
        border: 1px solid #000;
    }
} 