.hero {
    background: linear-gradient(135deg, #b3001b 0%, #e11d48 45%, #f87171 100%);
    color: #fff;
    border-radius: 1.25rem;
    padding: 3.5rem 3rem;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.stat-card {
    border: 1px solid #f3d4d8;
    border-radius: 1rem;
    padding: 1.5rem;
    background: #fff;
}

.service-card {
    border: 0;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.service-card img {
    height: 220px;
    object-fit: cover;
}

.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(14px);
    border-radius: 1rem;
    padding: 1.5rem;
}

.pill {
    background: #ffe5e8;
    color: #a1121c;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-weight: 500;
    font-size: 0.85rem;
}

.bg-gradient-red {
    background: linear-gradient(135deg, #b3001b 0%, #e11d48 100%);
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.text-gradient-red {
    background: linear-gradient(135deg, #b3001b 0%, #e11d48 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.panel-card {
    border-radius: 1.25rem;
    border: 1px solid #f3d4d8;
    background: #fff;
    box-shadow: 0 4px 20px rgba(179, 0, 27, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.panel-card:hover {
    box-shadow: 0 8px 30px rgba(179, 0, 27, 0.08);
}

.btn-danger {
    background-color: #b3001b;
    border-color: #b3001b;
}

.btn-danger:hover {
    background-color: #990017;
    border-color: #990017;
}

.btn-outline-danger {
    color: #b3001b;
    border-color: #b3001b;
}

.btn-outline-danger:hover {
    background-color: #b3001b;
    color: #fff;
}

.list-group-item.active {
    background-color: #b3001b !important;
    border-color: #b3001b !important;
}

.form-control:focus, .form-select:focus {
    border-color: #b3001b;
    box-shadow: 0 0 0 0.25rem rgba(179, 0, 27, 0.1);
}

.badge.bg-success {
    background-color: #059669 !important;
}

.badge.bg-warning {
    background-color: #d97706 !important;
    color: #fff;
}

.badge.bg-danger {
    background-color: #b3001b !important;
}

.service-img-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.service-img-container img {
    transition: transform 0.3s ease;
}

.service-img-container:hover img {
    transform: scale(1.05);
}

.video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.form-control, .form-select {
    border-radius: 0.9rem;
    border-color: #f1c2c7;
}

.btn-rounded {
    border-radius: 999px;
    padding: 0.6rem 1.6rem;
}

.theme-bg {
    background: #b3001b;
}

.theme-text {
    color: #b3001b;
}

.theme-light {
    background: #fff7f8;
}

.sidebar {
    background: #b3001b;
    color: #fff;
    min-height: 100vh;
}

.sidebar a {
    color: #fff;
    text-decoration: none;
}

.sidebar .nav-link {
    border-radius: 0.8rem;
    padding: 0.6rem 0.9rem;
    color: #fff;
}

.sidebar .nav-link.active, .sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.18);
}

.admin-shell {
    background: #f8fafc;
    min-height: 100vh;
}

.sidebar {
    background: #1e293b;
    color: #94a3b8;
    min-height: 100vh;
    border-right: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 280px;
    transform: translateX(-100%);
    overflow-y: auto;
    display: flex !important;
    flex-direction: column;
}

@media (min-width: 992px) {
    .sidebar {
        transform: translateX(0);
        width: 260px;
    }
    
    main.offset-lg-2 {
        margin-left: 260px !important;
        width: calc(100% - 260px) !important;
        flex: 0 0 auto;
    }
}

@media (max-width: 991.98px) {
    main.offset-lg-2 {
        margin-left: 0 !important;
        width: 100% !important;
        flex: 0 0 100%;
    }
}

.sidebar.show {
    transform: translateX(0);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
}

/* Modern Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1040;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-nav-item i {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.mobile-nav-item.active {
    color: #ef4444;
}

/* PWA Optimizations */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 80px; /* Space for bottom nav */
    }
    
    .navbar {
        position: sticky;
        top: 0;
        z-index: 1030;
    }
}

/* Improved Touch Targets */
.btn, .nav-link, .mobile-nav-item {
    touch-action: manipulation;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1040;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

.sidebar .nav-link {
    color: #94a3b8;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.sidebar .nav-link.active {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.sidebar .nav-link i {
    font-size: 1.1rem;
}

.admin-topbar {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.admin-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.admin-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

.bg-soft-danger { background: #fee2e2; color: #ef4444; }
.bg-soft-primary { background: #e0e7ff; color: #4f46e5; }
.bg-soft-success { background: #dcfce7; color: #10b981; }
.bg-soft-warning { background: #fef3c7; color: #f59e0b; }

.admin-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.table-modern thead th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.table-modern tbody td {
    padding: 1rem;
    vertical-align: middle;
}

.admin-search-wrapper {
    position: relative;
}

.admin-search-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.admin-search {
    padding-left: 2.75rem !important;
    background: #f1f5f9 !important;
    border: none !important;
}

.admin-list {
    display: grid;
    gap: 0.75rem;
}

.admin-list-item {
    background: #fff7f8;
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid #f3d4d8;
}

.admin-section-title {
    font-weight: 700;
    color: #7a0b18;
}

.table thead th {
    background: #fff1f3;
    color: #7a0b18;
    font-weight: 600;
}

.sidebar .nav-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
    margin-top: 1.2rem;
}

.sidebar .nav-link {
    border-radius: 0.9rem;
    padding: 0.65rem 0.95rem;
}

.sidebar-footer {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 0.9rem;
    font-size: 0.85rem;
}
