/* === Global === */
body {
    background: #0f1724;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
a { color: #FF6B9D; text-decoration: none; }
a:hover { color: #ff8bb0; }

/* === Auth Pages (login/register) === */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.auth-container { width: 100%; max-width: 400px; padding: 20px; }
.auth-card {
    background: #16213e;
    border: 1px solid #2a3a5e;
    border-radius: 16px;
    padding: 32px;
}
.auth-title {
    color: #FF6B9D;
    text-align: center;
    margin-bottom: 4px;
    font-weight: bold;
}
.auth-desc {
    text-align: center;
    color: #6b7a9a;
    margin-bottom: 24px;
    font-size: 14px;
}
.auth-input {
    background: #1f2b4a !important;
    border: 1px solid #2a3a5e !important;
    color: #e0e0e0 !important;
    border-radius: 8px;
}
.auth-input:focus {
    border-color: #FF6B9D !important;
    box-shadow: 0 0 0 2px rgba(255,107,157,0.2) !important;
}
.auth-btn {
    background: #FF6B9D !important;
    border: none !important;
    border-radius: 8px;
    padding: 10px;
    font-weight: 500;
}
.auth-btn:hover { background: #e85a8c !important; }

/* === Admin Sidebar === */
.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100vh;
    background: #16213e;
    border-right: 1px solid #1f2b4a;
    display: flex;
    flex-direction: column;
    z-index: 100;
}
.sidebar-brand {
    padding: 20px 16px;
    color: #FF6B9D;
    font-weight: bold;
    font-size: 16px;
    border-bottom: 1px solid #1f2b4a;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sidebar-toggle {
    background: none;
    border: none;
    color: #a0a0b0;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.sidebar-toggle:hover { color: #FF6B9D; }
.sidebar-nav {
    list-style: none;
    padding: 8px 0;
    margin: 0;
    flex: 1;
}
.sidebar-nav li a {
    display: block;
    padding: 10px 16px;
    color: #a0a0b0;
    font-size: 14px;
    transition: all 0.2s;
}
.sidebar-nav li a:hover {
    background: #1f2b4a;
    color: #FF6B9D;
}
.sidebar-nav li a.active {
    background: #1f2b4a;
    color: #FF6B9D;
    border-right: 3px solid #FF6B9D;
    font-weight: 500;
}
.sidebar-footer {
    padding: 12px;
    border-top: 1px solid #1f2b4a;
}

/* === Sidebar Collapse === */
body.sidebar-collapsed .admin-sidebar {
    width: 0;
    overflow: hidden;
    border: none;
}
body.sidebar-collapsed .admin-content {
    margin-left: 0;
}
.admin-sidebar, .admin-content {
    transition: all 0.3s ease;
}

/* Responsive: auto-collapse on narrow screens */
@media (max-width: 768px) {
    .admin-sidebar {
        display: none;
    }
    body.sidebar-open .admin-sidebar {
        display: flex;
        width: 200px;
        box-shadow: 4px 0 20px rgba(0,0,0,0.5);
    }
    .admin-content {
        margin-left: 0 !important;
        padding: 16px;
    }
    .mobile-toggle {
        display: flex !important;
    }
}
.mobile-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    background: #16213e;
    border: 1px solid #2a3a5e;
    color: #FF6B9D;
    font-size: 20px;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
}
.mobile-toggle:hover {
    background: #1f2b4a;
}

/* === Admin Content === */
.admin-content {
    margin-left: 200px;
    padding: 24px 32px;
    min-height: 100vh;
}

/* === Cards === */
.admin-card {
    background: #16213e !important;
    border: 1px solid #2a3a5e !important;
    border-radius: 12px;
}
.admin-card .card-body { padding: 24px; }
.admin-card .form-label { color: #a0a0b0; font-size: 14px; }
.admin-card .form-control, .admin-card .form-select {
    background: #1f2b4a !important;
    border: 1px solid #2a3a5e !important;
    color: #e0e0e0 !important;
    border-radius: 8px;
}
.admin-card .form-control:focus, .admin-card .form-select:focus {
    border-color: #FF6B9D !important;
    box-shadow: 0 0 0 2px rgba(255,107,157,0.2) !important;
}

/* === Stat Cards === */
.stat-card {
    background: #16213e;
    border: 1px solid #2a3a5e;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #FF6B9D;
}
.stat-label {
    color: #6b7a9a;
    font-size: 13px;
    margin-top: 4px;
}
.stat-active .stat-value { color: #4CAF50; }
.stat-unused .stat-value { color: #FFC107; }
.stat-expired .stat-value { color: #6b7a9a; }

/* === Alerts === */
.alert-error {
    background: #3a1a1a;
    color: #ff6b6b;
    border: 1px solid #5a2a2a;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
}
.alert-success {
    background: #1a3a1a;
    color: #6bff6b;
    border: 1px solid #2a5a2a;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
}

/* === Badges === */
.badge-unused { background: #FFC107; color: #000; }
.badge-active { background: #4CAF50; color: #fff; }
.badge-expired { background: #6b7a9a; color: #fff; }
.badge-disabled { background: #f44336; color: #fff; }
.badge-generate { background: #2196F3; color: #fff; }
.badge-bind { background: #4CAF50; color: #fff; }
.badge-unbind { background: #FF9800; color: #fff; }
.badge-disable { background: #f44336; color: #fff; }
.badge-enable { background: #4CAF50; color: #fff; }
.badge-validate { background: #9C27B0; color: #fff; }

/* === Table === */
.admin-table {
    color: #e0e0e0;
    font-size: 13px;
}
.admin-table thead th {
    background: #1a2745;
    border-color: #2a3a5e;
    color: #6b7a9a;
    font-weight: 500;
    white-space: nowrap;
}
.admin-table tbody td {
    border-color: #1f2b4a;
    vertical-align: middle;
}
.admin-table tbody tr:hover { background: #1a2745; }

/* === Pagination === */
.pagination .page-link {
    background: #1f2b4a;
    border-color: #2a3a5e;
    color: #e0e0e0;
}
.pagination .page-link:hover { background: #2a3a5e; }
.pagination .active .page-link {
    background: #FF6B9D;
    border-color: #FF6B9D;
}

/* === Buttons === */
.btn-primary { background: #FF6B9D; border-color: #FF6B9D; border-radius: 8px; }
.btn-primary:hover { background: #e85a8c; border-color: #e85a8c; }
.btn-outline-primary {
    color: #FF6B9D;
    border-color: #FF6B9D;
    border-radius: 8px;
}
.btn-outline-primary:hover {
    background: #FF6B9D;
    color: #fff;
}
.btn-outline-warning, .btn-outline-danger, .btn-outline-success {
    border-radius: 6px;
    font-size: 12px;
}

/* === Homepage === */
.home-page { background: #0f1724; }
.hero-section {
    padding: 80px 20px 60px;
    background: linear-gradient(180deg, #16213e 0%, #0f1724 100%);
}
.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #FF6B9D;
    margin-bottom: 12px;
}
.hero-subtitle {
    font-size: 20px;
    color: #a0a0b0;
    margin-bottom: 8px;
}
.hero-desc {
    font-size: 15px;
    color: #6b7a9a;
    max-width: 500px;
    margin: 0 auto 32px;
}
.download-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-download {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    text-align: left;
    transition: all 0.3s;
}
.btn-download:hover { transform: translateY(-2px); }
.btn-android {
    background: #16213e;
    border: 1px solid #2a3a5e;
    color: #e0e0e0;
}
.btn-ios {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #e0e0e0;
}
.download-icon { font-size: 24px; }
.btn-download small { color: #6b7a9a; font-size: 11px; }

.features-section {
    padding: 60px 20px;
}
.section-title {
    text-align: center;
    color: #FF6B9D;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
}
.feature-card {
    background: #16213e;
    border: 1px solid #1f2b4a;
    border-radius: 16px;
    padding: 28px 20px;
    height: 100%;
    transition: all 0.3s;
}
.feature-card:hover { border-color: #2a3a5e; transform: translateY(-2px); }
.feature-icon { font-size: 36px; margin-bottom: 12px; }
.feature-card h3 { color: #FF6B9D; font-size: 16px; margin-bottom: 8px; }
.feature-card p { color: #6b7a9a; font-size: 13px; line-height: 1.6; margin: 0; }
