/* ============================================
   AFFORDABLE BUNDLES - DARK THEME
   Global dark mode styles for the entire system
   ============================================ */

/* CSS Variables */
:root {
    /* Background Colors */
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-card: #232323;
    --bg-input: #2a2a2a;
    --bg-hover: #333333;
    
    /* Border Colors */
    --border-color: #333333;
    --border-light: #404040;
    --border-focus: #f59e0b;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a1a1a1;
    --text-muted: #6b6b6b;
    --text-accent: #f59e0b;
    
    /* Accent Colors */
    --accent: #f59e0b;
    --accent-hover: #fbbf24;
    --accent-dark: #d97706;
    --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    
    /* Status Colors */
    --error-bg: #2d1f1f;
    --error-border: #5c2828;
    --error-text: #f87171;
    --success-bg: #1f2d1f;
    --success-border: #285c28;
    --success-text: #4ade80;
    --warning-bg: #2d2a1f;
    --warning-border: #5c4f28;
    --warning-text: #fbbf24;
    --info-bg: #1f2a2d;
    --info-border: #28485c;
    --info-text: #60a5fa;
    
    /* Network Colors */
    --mtn-color: #ffcc00;
    --vodafone-color: #e60000;
    --airteltigo-color: #ff6600;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 15px 40px rgba(0, 0, 0, 0.6);
    --shadow-accent: 0 8px 25px rgba(245, 158, 11, 0.25);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
}

p {
    color: var(--text-secondary);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

/* Form Elements */
input, select, textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--text-primary);
    font-family: inherit;
    transition: all var(--transition-normal);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
    background: var(--bg-secondary);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b6b6b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 44px;
}

select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: inherit;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
}

.btn-danger {
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-border);
}

.btn-danger:hover {
    background: #3d2525;
}

.btn-success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.card-header {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.alert-error {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error-text);
}

.alert-success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-text);
}

.alert-warning {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    color: var(--warning-text);
}

.alert-info {
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    color: var(--info-text);
}

/* Tables */
.table-dark {
    width: 100%;
    border-collapse: collapse;
}

.table-dark th,
.table-dark td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table-dark th {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-dark tr:hover {
    background: var(--bg-hover);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success-text);
}

.badge-error {
    background: var(--error-bg);
    color: var(--error-text);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.badge-info {
    background: var(--info-bg);
    color: var(--info-text);
}

/* Navigation */
.nav-dark {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.nav-link {
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-hover);
}

/* Header Styles */
.header-dark {
    background: linear-gradient(to right, var(--bg-secondary), var(--bg-primary), var(--bg-secondary));
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Footer Styles */
.footer-dark {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    color: var(--text-muted);
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 1000;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.toggle-password:hover {
    color: var(--accent);
}

/* Utility Classes */
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.bg-dark-primary { background: var(--bg-primary); }
.bg-dark-secondary { background: var(--bg-secondary); }
.bg-dark-card { background: var(--bg-card); }
.border-dark { border-color: var(--border-color); }

/* Responsive */
@media (max-width: 768px) {
    .card {
        padding: 20px 16px;
    }
    
    input, select, textarea {
        padding: 12px 14px;
    }
    
    .btn {
        padding: 12px 20px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ORDER FORMS - DARK THEME
   ============================================ */

/* Order Form Cards */
.order-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all var(--transition-normal);
}

.order-form-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
}

/* Order Form Card Header */
.order-form-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.order-form-header .icon-box {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.order-form-header .icon-box.blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.order-form-header .icon-box.orange {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.order-form-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Order Form Inputs */
.order-form-card label {
    display: block;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.order-form-card label i {
    margin-right: 8px;
}

.order-form-card select,
.order-form-card input,
.order-form-card textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all var(--transition-normal);
}

.order-form-card select:focus,
.order-form-card input:focus,
.order-form-card textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.order-form-card textarea::placeholder,
.order-form-card input::placeholder {
    color: var(--text-muted);
}

/* Form Info Text */
.order-form-card .form-info {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 6px;
}

.order-form-card .form-info i {
    margin-right: 4px;
}

/* Price Display */
.order-form-card .price-display {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 6px;
}

.order-form-card .price-display .price-value {
    color: var(--success-text);
    font-weight: 600;
}

/* ============================================
   DASHBOARD NAVIGATION BUTTONS
   ============================================ */

.dashboard-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding: 0 4px;
}

.dashboard-nav-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.dashboard-nav-btn i {
    margin-right: 8px;
}

/* View Orders Button - Primary Style */
.dashboard-nav-btn.btn-view-orders {
    background: var(--accent-gradient);
    color: #000 !important;
    border: none;
}

.dashboard-nav-btn.btn-view-orders:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
    color: #000 !important;
}

.dashboard-nav-btn.btn-view-orders:hover i,
.dashboard-nav-btn.btn-view-orders:hover span,
.dashboard-nav-btn.btn-view-orders:hover {
    color: #000 !important;
}

/* Transaction History Button - Secondary Style */
.dashboard-nav-btn.btn-transaction {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: #fff;
    border: none;
}

.dashboard-nav-btn.btn-transaction:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.35);
}

/* Top Up Button - Green Style */
.dashboard-nav-btn.btn-topup {
    background: linear-gradient(180deg, #0f9b6a 0%, #0b8a60 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 24px rgba(7, 124, 88, 0.35);
    letter-spacing: 0.2px;
}

.dashboard-nav-btn.btn-topup:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(7, 124, 88, 0.5);
}

/* Mobile Tab Styles */
.mobile-tab-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 24px;
}

.mobile-tab-header {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.mobile-tab-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.mobile-tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.mobile-tab-btn:not(.active):hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}
