/* ===========================
   MOSQUÉE - Custom CSS
   Modern Design with Bootstrap 5
   =========================== */

/* === ROOT VARIABLES === */
:root {
    --primary-color: #006d77;
    --secondary-color: #83c5be;
    --accent-color: #edf6f9;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --warning-color: #ffd166;
    --success-color: #06d6a0;
    --danger-color: #ef476f;
}

/* === GLOBAL STYLES === */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* === SCROLLBAR CUSTOM === */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #005159;
}

/* === NAVIGATION === */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding-left: 2rem;
}

/* === HERO SECTION === */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004d56 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    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 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,170.7C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

/* === PAGE HEADER === */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004d56 100%);
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,170.7C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

/* === PRAYER TIMES WIDGET === */
.prayer-times-widget {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* === CARDS === */
.card {
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    border: none;
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* === BUTTONS === */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #005159 100%);
    box-shadow: 0 4px 15px rgba(0, 109, 119, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #005159 0%, var(--primary-color) 100%);
    box-shadow: 0 6px 20px rgba(0, 109, 119, 0.4);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

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

.btn-light:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* === FORMS === */
.form-control,
.form-select {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 109, 119, 0.15);
}

/* === ALERTS === */
.alert {
    border: none;
    border-radius: 10px;
    padding: 1.25rem;
}

.alert-primary {
    background-color: rgba(0, 109, 119, 0.1);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

.alert-info {
    background-color: rgba(131, 197, 190, 0.1);
    color: #006d77;
    border-left: 4px solid var(--secondary-color);
}

.alert-warning {
    background-color: rgba(255, 209, 102, 0.1);
    color: #d4930f;
    border-left: 4px solid var(--warning-color);
}

.alert-success {
    background-color: rgba(6, 214, 160, 0.1);
    color: #059669;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: rgba(239, 71, 111, 0.1);
    color: #c81e3f;
    border-left: 4px solid var(--danger-color);
}

/* === TABLES === */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, #005159 100%);
    color: white;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: rgba(0, 109, 119, 0.05);
    transform: scale(1.01);
}

/* === FOOTER === */
footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color) !important;
    transform: translateX(5px);
}

.social-links a {
    display: inline-block;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2) translateY(-3px);
}

/* === BADGES === */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
}

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

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

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
    }

    .hero-overlay {
        padding: 50px 0;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }
}

/* === CUSTOM UTILITIES === */
.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.rounded {
    border-radius: 15px !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* === PRINT STYLES === */
@media print {
    .navbar,
    footer,
    .btn {
        display: none;
    }
}