/* Custom Styles for SD2HS Website */

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

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%), url('https://images.unsplash.com/photo-1551434678-e076c223a692?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

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

.hero h1 {
    font-weight: bold;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.25rem;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero img {
    animation: fadeIn 1s ease-out;
}

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

section {
    padding: 60px 0;
}

.card {
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

footer {
    margin-top: auto;
}

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

.modern-navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.modern-navbar .nav-link {
    transition: color 0.3s ease;
}

.modern-navbar .nav-link:hover {
    color: #fff !important;
    background-color: rgba(255,255,255,0.1);
    border-radius: 5px;
}

.btn-primary {
    background-color: #667eea;
    border-color: #667eea;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #e55a2b;
    border-color: #e55a2b;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.text-primary {
    color: #667eea !important;
}

/* Mobile Web App Styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero img {
        width: 100%;
        height: auto;
    }

    /* Mobile-friendly cards */
    .card {
        margin-bottom: 1rem;
    }

    /* Mobile navigation */
    .navbar-toggler {
        border: none;
    }

    /* Mobile dashboard */
    .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }

    /* Touch-friendly buttons */
    .btn {
        min-height: 44px;
        font-size: 16px;
    }

    /* Mobile form inputs */
    .form-control {
        font-size: 16px;
        padding: 0.75rem;
    }
}

/* Dashboard Styles */
.border-left-primary {
    border-left: 4px solid #667eea !important;
}

.border-left-success {
    border-left: 4px solid #198754 !important;
}

.border-left-warning {
    border-left: 4px solid #ffc107 !important;
}

.border-left-danger {
    border-left: 4px solid #dc3545 !important;
}

.border-left-info {
    border-left: 4px solid #0dcaf0 !important;
}

.border-left-secondary {
    border-left: 4px solid #6c757d !important;
}

/* Mobile Bottom Navigation */
.navbar.fixed-bottom {
    height: 70px;
    padding: 0;
    background: white !important;
    border-top: 2px solid #e9ecef;
}

.navbar.fixed-bottom .col {
    padding: 0;
}

.navbar.fixed-bottom a {
    color: #6c757d;
    transition: color 0.3s;
}

.navbar.fixed-bottom a:hover {
    color: #667eea;
}

.navbar.fixed-bottom .fa-lg {
    display: block;
    margin-bottom: 2px;
}

/* PWA Install Prompt */
.pwa-install-prompt {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #667eea;
    color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    display: none;
}

.pwa-install-prompt.show {
    display: block;
}

/* Modern Dashboard Enhancements */
.dashboard-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
}

.stats-card .card-body {
    position: relative;
    z-index: 1;
}

.quick-action-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 15px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.quick-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    color: white;
}

.report-card {
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.report-card:hover {
    border-color: #667eea;
    transform: scale(1.02);
}

.welcome-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.welcome-card .card-body {
    padding: 2rem;
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Modern Button Styles */
.btn-modern {
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-modern:hover {
    transform: translateY(-2px);
}

/* Dashboard Mobile Adjustments */
@media (max-width: 991.98px) {
    .container-fluid {
        padding-bottom: 80px; /* Space for bottom nav */
    }

    .card-body .row.g-3 .col-md-4 {
        margin-bottom: 1rem;
    }

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

    .stats-card {
        margin-bottom: 1rem;
    }
}