/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0c4a6e;
    /* Darker Blue from logo */
    --accent-color: #0369a1;
    /* Main Blue from logo */
    --secondary-accent: #db2777;
    /* Pink from logo */
    --primary-dark: #082f49;
    --primary-light: rgba(3, 105, 161, 0.1);
    --secondary-color: #64748b;
    --bg-color: #f8fafc;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.7);
    --dark: #0f172a;
    --rounded: 20px;
    --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--dark);
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #0ea5e9);
    border: none;
    border-radius: var(--rounded);
    padding: 14px 28px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 15px -3px rgba(3, 105, 161, 0.2);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.3);
    filter: brightness(1.1);
}

.btn-outline-primary {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: var(--rounded);
    padding: 10px 22px;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: var(--accent-color);
    color: white;
}

.form-control {
    border-radius: 15px;
    padding: 14px 18px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: var(--white);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px var(--primary-light);
    background: var(--white);
}

.card {
    border-radius: var(--rounded);
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

/* Mobile Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 70px;
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-radius: 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.bottom-nav-item {
    text-align: center;
    color: #94a3b8;
    text-decoration: none;
    font-size: 11px;
    transition: var(--transition);
}

.bottom-nav-item.active {
    color: var(--accent-color);
}

.bottom-nav-item i {
    display: block;
    font-size: 22px;
}

/* Page Layout */
.main-content {
    padding-bottom: 110px;
}

.header-sticky {
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 20px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
    font-weight: 800;
    font-size: 22px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* Multi-color Palette */
.bg-blue-soft {
    background-color: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
}

.bg-green-soft {
    background-color: rgba(34, 197, 94, 0.1) !important;
    color: #22c55e !important;
}

.bg-orange-soft {
    background-color: rgba(249, 115, 22, 0.1) !important;
    color: #f97316 !important;
}

.bg-purple-soft {
    background-color: rgba(168, 85, 247, 0.1) !important;
    color: #a855f7 !important;
}

.bg-pink-soft {
    background-color: rgba(236, 72, 153, 0.1) !important;
    color: #ec4899 !important;
}

.text-blue {
    color: #3b82f6 !important;
}

.text-green {
    color: #22c55e !important;
}

.text-orange {
    color: #f97316 !important;
}

.text-purple {
    color: #a855f7 !important;
}

.text-pink {
    color: #ec4899 !important;
}

/* Enhanced Hero Section */
.hero-card {
    position: relative;
    overflow: hidden;
    height: 220px;
    border-radius: var(--rounded);
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

/* Service Items */
.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--accent-color);
    margin-right: 15px;
}

/* Service Item Multi-color Updates */
.service-icon-box.blue {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.service-icon-box.green {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.service-icon-box.orange {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.service-icon-box.purple {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.btn-orange {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-orange:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(249, 115, 22, 0.4);
}

.btn-pink {
    background: linear-gradient(135deg, #ec4899, #be185d);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.btn-pink:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(236, 72, 153, 0.4);
}

/* Admin Sidebar Styles */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    height: 100vh;
    background: var(--dark);
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1001;
    transition: var(--transition);
    padding: 30px 20px;
    overflow-y: auto;
}

.sidebar .logo {
    background: linear-gradient(135deg, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 50px;
    display: block;
    text-align: center;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition);
    font-weight: 500;
}

.sidebar-link i {
    font-size: 20px;
    margin-right: 15px;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-link.active {
    background: var(--accent-color);
    box-shadow: 0 4px 15px rgba(3, 105, 161, 0.4);
}

.admin-main {
    flex-grow: 1;
    margin-left: 280px;
    background: var(--bg-color);
    padding: 40px;
    transition: var(--transition);
}

/* Mobile Sidebar Toggle */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1002;
    background: var(--dark);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: var(--transition);
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

@media (max-width: 992px) {
    .sidebar {
        left: -280px;
    }

    .sidebar.show {
        left: 0;
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.2);
    }

    .admin-main {
        margin-left: 0;
        padding: 85px 15px 40px;
    }

    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .dashboard-stats .col-6 {
        width: 100%;
    }

    .admin-main {
        padding-top: 80px;
    }

    .sidebar {
        width: 250px;
        left: -250px;
    }
}

/* DataTables Custom Styling */
.dataTables_wrapper .dataTables_filter input {
    border-radius: 20px;
    padding: 8px 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #f1f5f9;
    margin-left: 10px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
}

.dt-buttons .btn {
    font-weight: 500 !important;
    opacity: 1 !important;
    color: white !important;
}

.dt-buttons .btn-primary {
    background-color: #3b82f6 !important;
}

.dt-buttons .btn-success {
    background-color: #22c55e !important;
}

.dt-buttons .btn-danger {
    background-color: #ef4444 !important;
}

.dt-buttons .btn-dark {
    background-color: #1e293b !important;
}

table.dataTable thead th {
    border-bottom: 2px solid #f1f5f9 !important;
    font-weight: 600;
    color: var(--secondary-color);
}

.dataTables_info,
.dataTables_paginate {
    font-size: 13px;
    color: var(--secondary-color);
    margin-top: 20px;
}

@media print {
    .no-print {
        display: none;
    }
}

/* Custom Spacing Overrides for Premium Feel */
.p-3 {
    padding: 3rem !important;
}

.rounded-4 {
    border-radius: 24px !important;
}