/* ===== Global Styles ===== */
:root {
    --primary-color: #0d47a1;
    --primary-dark: #0a3575;
    --secondary-color: #ffc107;
    --secondary-dark: #e0a800;
    --dark-bg: #0f1419;
    --card-bg: #1a1f2e;
    --text-muted: #8899a6;
    --success-color: #00c853;
    --danger-color: #ff5252;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* ===== Navbar ===== */
.navbar {
    background: rgba(13, 71, 161, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(13, 71, 161, 1) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.activation-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
}

.stat-item {
    text-align: center;
    padding: 0.5rem 1rem;
    border-left: 2px solid rgba(255,255,255,0.2);
}

.stat-item:first-child {
    border-left: none;
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 0.9rem;
    animation: float 3s ease-in-out infinite;
    z-index: 3;
}

.floating-card i {
    font-size: 1.5rem;
}

.card-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: -5%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 15%;
    left: 5%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== Step Cards ===== */
.step-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.step-icon i {
    font-size: 2rem;
}

/* ===== Features ===== */
.feature-icon {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 1.5rem;
}

.feature-image-container {
    position: relative;
}

.feature-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

/* ===== Testimonials ===== */
.testimonial-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    height: 100%;
}

.avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

/* ===== Auth Pages ===== */
.auth-container {
    min-height: 100vh;
    display: flex;
}

.auth-left {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,193,7,0.1) 0%, transparent 70%);
}

.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: white;
}

.auth-form {
    width: 100%;
    max-width: 400px;
}

.form-floating label {
    color: #6c757d;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 71, 161, 0.25);
}

/* ===== Dashboard ===== */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--dark-bg);
    color: white;
    padding: 1.5rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-brand {
    padding: 1rem 0 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1.5rem;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.sidebar-nav a i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    background: #f8f9fa;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* ===== Stat Cards ===== */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stat-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* ===== Data Tables ===== */
.data-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.data-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.data-card-body {
    padding: 0;
}

.data-table {
    width: 100%;
    margin: 0;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    padding: 1rem 1.5rem;
    border: none;
}

.data-table td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    border-color: #f1f1f1;
}

.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-matched {
    background: #cce5ff;
    color: #004085;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* ===== Modals ===== */
.modal-content {
    border-radius: 16px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
}

/* ===== Upload Area ===== */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(13, 71, 161, 0.05);
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(13, 71, 161, 0.1);
}

.upload-area i {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

/* ===== Profile Page ===== */
.profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 3rem;
    border-radius: 16px;
    color: white;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: bold;
    border: 4px solid rgba(255,255,255,0.3);
}

/* ===== Settings Page ===== */
.settings-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
}

.settings-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.settings-card-body {
    padding: 1.5rem;
}

/* ===== Activation Page ===== */
.activation-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 2rem;
}

.activation-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.bank-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.bank-details-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.bank-details-row:last-child {
    border-bottom: none;
}

.bank-details-label {
    color: #6c757d;
    font-weight: 500;
}

.bank-details-value {
    font-weight: 600;
    color: #333;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-left {
        padding: 2rem;
        min-height: auto;
    }
    
    .sidebar {
        position: fixed;
        left: -280px;
        z-index: 1050;
        transition: left 0.3s ease;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
        display: none;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .stat-item {
        padding: 0.5rem;
    }
    
    .floating-card {
        display: none;
    }
}

/* ===== Utilities ===== */
.bg-primary-subtle { background-color: rgba(13, 71, 161, 0.1); }
.bg-warning-subtle { background-color: rgba(255, 193, 7, 0.1); }
.bg-success-subtle { background-color: rgba(0, 200, 83, 0.1); }
.bg-info-subtle { background-color: rgba(23, 162, 184, 0.1); }
.bg-danger-subtle { background-color: rgba(255, 82, 82, 0.1); }

.text-primary { color: var(--primary-color) !important; }
.text-warning { color: var(--secondary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-warning {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #333;
}

.btn-warning:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: #333;
}

/* ===== Countdown Timer ===== */
.countdown-card {
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.countdown-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #00c853 0%, #00a344 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.countdown-timer {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    text-align: center;
    flex: 1;
    backdrop-filter: blur(10px);
}

.countdown-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.countdown-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.countdown-small {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.5rem;
    display: inline-flex;
    gap: 0.25rem;
    align-items: center;
}

.countdown-small .countdown-item {
    background: transparent;
    padding: 0.25rem 0.5rem;
    min-width: auto;
}

.countdown-small .countdown-value {
    font-size: 1rem;
}

.countdown-small .countdown-label {
    font-size: 0.6rem;
}

.countdown-small .countdown-separator {
    color: rgba(255, 255, 255, 0.7);
    font-weight: bold;
}

/* Progress bar for countdown */
.countdown-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 1rem;
}

.countdown-progress-bar {
    height: 100%;
    background: white;
    border-radius: 3px;
    transition: width 1s linear;
}
