/**
 * Main Stylesheet
 * Awasyojna - Housing Scheme Management System
 */

/* ============================================
   1. GLOBAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Modern Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #2d3748;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: -0.5px;
}

main {
    flex: 1;
}

/* ============================================
   2. NAVBAR - Modern Design
   ============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.75rem;
}

.navbar-nav .nav-link {
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 500;
    color: var(--dark-color) !important;
}

.navbar-nav .nav-link:hover {
    background-color: var(--light-color);
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    background-color: var(--primary-color);
    color: white !important;
}

.navbar-nav .btn {
    margin-left: 1rem;
    padding: 0.5rem 1.5rem !important;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

/* ============================================
   3. HERO SLIDER - Modern & Dynamic
   ============================================ */
.hero-slider {
    height: 650px;
    position: relative;
}

.carousel-inner,
.carousel-item {
    height: 100%;
}

.hero-slide {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.hero-slide-1 {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1920&h=600&fit=crop') center/cover;
}

.hero-slide-2 {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('https://images.unsplash.com/photo-1582407947304-fd86f028f716?w=1920&h=600&fit=crop') center/cover;
}

.hero-slide-3 {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?w=1920&h=600&fit=crop') center/cover;
}

.carousel-caption {
    z-index: 2;
    bottom: 50%;
    transform: translateY(50%);
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   4. FEATURES & CARDS - Modern Design
   ============================================ */
.features {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.05);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotate(10deg) scale(1.1);
}

.feature-card h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.8;
}

.dashboard-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    height: 100%;
}

.dashboard-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.dashboard-card a {
    color: inherit;
}

.dashboard-card h4 {
    color: #333;
    margin: 20px 0 10px;
    font-weight: 600;
}

.dashboard-card p {
    color: #666;
    margin: 0;
}

/* ============================================
   5. FORMS & INPUTS
   ============================================ */
.card {
    border: none;
    border-radius: 15px;
}

.card-body {
    padding: 2rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.input-group-text {
    background-color: var(--light-color);
}

/* ============================================
   6. LOGIN/SIGNUP - Modern Design
   ============================================ */
.login-signup {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 0;
}

.login-signup .card {
    border-radius: 20px;
    overflow: hidden;
}

.login-signup .input-group-text {
    background: var(--light-color);
    border-right: 0;
}

.login-signup .form-control {
    border-left: 0;
    padding-left: 0;
}

.login-signup .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.login-signup .btn {
    font-weight: 600;
    border-radius: 10px;
    padding: 0.75rem;
}

/* ============================================
   7. TABLES
   ============================================ */
.table {
    background-color: white;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
}

/* ============================================
   8. STATUS BADGES
   ============================================ */
.status-select {
    border: 2px solid;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 10px;
}

.status-verified {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.status-cancelled {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.status-pending {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* ============================================
   9. BUTTONS
   ============================================ */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* ============================================
   10. CONTACT BANNER
   ============================================ */
.contact-banner {
    height: 300px;
    background: linear-gradient(rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9)),
                url('https://images.unsplash.com/photo-1423666639041-f56000c27a9a?w=1920&h=400&fit=crop') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.banner-overlay {
    width: 100%;
    text-align: center;
    z-index: 2;
}

/* ============================================
   11. STATS SECTION - Modern Design
   ============================================ */
.stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -200px;
    right: -200px;
}

.stat-card {
    padding: 2rem 1rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 3rem;
    opacity: 0.9;
}

.stat-card .counter {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

/* ============================================
   12. FOOTER
   ============================================ */
footer {
    margin-top: auto;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff !important;
}

/* ============================================
   13. UTILITIES
   ============================================ */
.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}

/* ============================================
   14. ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .feature-card, .dashboard-card {
    animation: fadeIn 0.5s ease;
}

/* ============================================
   15. RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .hero-slider {
        height: 400px;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        margin: 10px 0;
    }
    
    .dashboard-card {
        margin-bottom: 20px;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .btn-sm {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .stats-section .counter {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 300px;
    }
    
    .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    .contact-banner {
        height: 200px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .feature-card {
        margin-bottom: 15px;
    }
    
    .display-3 {
        font-size: 2rem;
    }
}

/* ============================================
   16. PRINT STYLES
   ============================================ */
@media print {
    .navbar, footer, .btn, .no-print {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .table {
        border: 1px solid #000;
    }
}
