/* Exclusive Nanny City - Modern UI Styles */

:root {
    --primary-color: #00563F;
    --primary-dark: #003d2f;
    --primary-light: #00a67f;
    --primary-lighter: #00d99f;
    --secondary-color: #008060;
    --accent-color: #e6f5f0;
    --success-color: #00c896;
    --warning-color: #ffb84d;
    --dark-color: #1a3d2e;
    --light-color: #f8f9fa;
    --text-dark: #2b2d42;
    --text-light: #6b7280;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --primary-shadow: 0 4px 15px rgba(0, 86, 63, 0.3);
    
    /* Bootstrap Primary Color Override */
    --bs-primary: #00563F;
    --bs-primary-rgb: 0, 86, 63;
    --bs-primary-dark: #003d2f;
    --bs-primary-light: #00a67f;
}

/* Bootstrap Primary Color Overrides */
.btn-primary,
.bg-primary,
.text-primary,
.border-primary,
.badge.bg-primary,
.alert-primary {
    --bs-primary: #00563F;
    --bs-primary-rgb: 0, 86, 63;
}

.btn-primary {
    background-color: #00563F;
    border-color: #00563F;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #003d2f;
    border-color: #003d2f;
}

.bg-primary {
    background-color: #00563F !important;
}

.text-primary {
    color: #00563F !important;
}

/* Override: Card headers with dark green backgrounds must have white text */
.card-header.bg-primary,
.card-header.bg-success,
.card-header[style*="#00563F"] {
    color: #ffffff !important;
}

.card-header.bg-primary *,
.card-header.bg-success *,
.card-header[style*="#00563F"] * {
    color: #ffffff !important;
}

.border-primary {
    border-color: #00563F !important;
}

.badge.bg-primary {
    background-color: #00563F !important;
}

.alert-primary {
    background-color: #e6f5f0;
    border-color: #00563F;
    color: #003d2f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-y: auto; /* Allow proper scrolling to see footer */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
}

main {
    flex: 1;
    overflow: visible; /* Prevent clipping of footer */
    min-height: auto; /* Prevent forcing full height */
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Hero Section - Modern Design */
.hero-section {
    background: linear-gradient(135deg, #00563F 0%, #008060 50%, #00a67f 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    color: white;
    padding: 0 0 80px;
    margin-top: 0 !important;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

/* Remove any spacing before hero section */
main > .hero-section:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Mobile: no top padding */
@media (max-width: 768px) {
    .hero-section {
        padding: 0 0 60px !important;
    }
    
    main > .hero-section:first-child {
        padding-top: 0 !important;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 1;
    padding-top: 20px;
    margin-top: 0 !important;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 20px rgba(0,0,0,0.1);
    animation: fadeInUp 0.8s ease-out;
}

.hero-section p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-section .btn {
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.hero-illustration {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero-illustration::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.3; }
}

/* Search Bar - Modern Design */
.search-bar {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    margin-top: -60px;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(0,0,0,0.05);
}

.search-bar .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.search-bar .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 86, 63, 0.1);
}

/* Modern Card Design */
.card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    background: white;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--box-shadow-lg);
}

.card-body {
    padding: 1.5rem;
}

/* Feature Cards */
.feature-card {
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.feature-card .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.feature-card .icon-wrapper i {
    font-size: 2.5rem;
    color: white;
}

/* Profile Image - Modern Design */
.profile-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* Badge Styles */
.badge-custom {
    padding: 0.5em 1em;
    font-weight: 500;
}

/* Modern Button Styles */
.btn {
    border-radius: 10px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 86, 63, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 63, 0.4);
    color: white;
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 86, 63, 0.3);
}

/* Dashboard Cards */
.dashboard-card {
    border-left: 4px solid var(--primary-color);
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Testimonial Card */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 100%;
}

/* Job Card */
.job-card {
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.job-card:hover {
    border-left-width: 6px;
}

/* Section Spacing */
section {
    padding: 80px 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 80px 0;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 80px;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

/* Modern Navigation Bar */
.navbar-modern {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.3rem 0; /* Reduced to 30% */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    overflow: visible;
    width: 100%;
    isolation: isolate;
    position: relative;
    pointer-events: auto !important;
}

/* Ensure navbar doesn't block content below */
.navbar-modern::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0;
    pointer-events: none;
    z-index: -1;
}

.navbar-modern.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
}

.navbar-modern .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0;
    position: relative;
    overflow: visible;
    width: 100%;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

#navbarNav {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: 0;
    margin-left: 1.5rem;
    margin-right: 0;
    min-width: 0;
    overflow: visible;
    width: 100%;
}

.navbar-spacer {
    height: 80px;
}

/* Hide navbar spacer by default - show only on dashboard/admin pages */
.navbar-spacer {
    height: 0 !important;
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: hidden !important;
}

/* Show navbar spacer only on dashboard and admin pages */
.dashboard-page .navbar-spacer,
.admin-page .navbar-spacer,
body.dashboard-page .navbar-spacer,
body.admin-page .navbar-spacer {
    height: 80px !important;
    display: block !important;
    visibility: visible !important;
}

/* Ensure hero section starts immediately after navbar */
main > .hero-section:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.navbar-spacer + main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.navbar-brand-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 0; /* Restored for desktop */
    flex-shrink: 0;
    min-width: fit-content;
    margin-right: 0;
}

/* Ensure proper spacing between brand and nav */
.navbar-brand-modern + #navbarNav {
    margin-left: 2rem;
}

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

.brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(0, 86, 63, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.navbar-brand-modern:hover .brand-icon {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 86, 63, 0.4);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
    overflow: hidden;
}

.brand-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark-color);
    letter-spacing: -0.5px;
    white-space: nowrap;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-nav-modern {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 0 1 auto;
    justify-content: flex-start;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: visible;
    max-width: fit-content;
}

@media (max-width: 1200px) {
    .navbar-nav-modern {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .navbar-nav-modern::-webkit-scrollbar {
        display: none;
    }
}

.nav-item-modern {
    position: relative;
    margin: 0;
    flex-shrink: 0;
}

.nav-link-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    flex: 0 0 auto;
    min-width: fit-content;
}

.nav-link-modern i {
    font-size: 1.05rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.nav-link-modern:hover {
    color: var(--primary-color);
    background: rgba(0, 86, 63, 0.08);
}

.nav-link-modern:hover i {
    transform: scale(1.1);
}

.nav-link-modern.active {
    color: var(--primary-color);
    background: rgba(0, 86, 63, 0.12);
}

.nav-link-modern.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Modern Button in Nav */
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-primary-modern {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 86, 63, 0.3);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 63, 0.4);
    color: white;
}

/* User Menu */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 2rem;
    overflow: visible;
    position: relative;
    z-index: 10;
    min-width: fit-content;
}

.user-menu-wrapper {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px; /* Restored for desktop */
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
    font-size: 0.9rem;
}

.user-menu-btn:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.user-avatar {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 8px;
    color: white;
    font-size: 1.2rem;
}

.user-name {
    font-size: 0.85rem;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-btn i.bi-chevron-down {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.user-menu-btn[aria-expanded="true"] i.bi-chevron-down {
    transform: rotate(180deg);
}

/* Modern Dropdown */
.dropdown-menu-modern {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 8px;
    margin-top: 8px;
    min-width: 220px;
}

.dropdown-item-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.dropdown-item-modern i {
    width: 20px;
    text-align: center;
    color: var(--text-light);
    transition: color 0.2s ease;
}

.dropdown-item-modern:hover {
    background: rgba(0, 86, 63, 0.08);
    color: var(--primary-color);
}

.dropdown-item-modern:hover i {
    color: var(--primary-color);
}

.dropdown-item-modern.text-danger:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.dropdown-divider {
    margin: 8px 0;
    border-color: rgba(0, 0, 0, 0.08);
}

/* Modern Mobile Toggle */
.navbar-toggler-modern {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 1001;
    order: -1;
    margin-right: 1rem;
}

.navbar-toggler-modern span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--dark-color);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.navbar-toggler-modern[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.navbar-toggler-modern[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler-modern[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Large screens - keep items tight */
@media (max-width: 1600px) {
    .nav-link-modern {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

/* Medium screens - reduce padding but keep text */
@media (max-width: 1400px) {
    .nav-link-modern {
        padding: 10px 10px;
        font-size: 0.85rem;
    }
    
    .nav-link-modern .nav-text {
        display: inline;
    }
    
    .btn-modern {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .btn-modern .btn-text {
        display: inline;
    }
    
    .navbar-actions {
        gap: 8px;
    }
}

/* Small desktop - icon only if absolutely necessary */
@media (max-width: 1200px) {
    .nav-link-modern {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
    
    .nav-link-modern .nav-text {
        display: none;
    }
    
    .nav-link-modern i {
        font-size: 1.1rem;
        margin: 0;
    }
    
    .btn-modern {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    
    .btn-modern .btn-text {
        display: none;
    }
    
    .brand-tagline {
        display: none;
    }
    
    .brand-name {
        font-size: 1rem;
    }
    
    .brand-icon {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
    
    #navbarNav {
        margin-left: 1rem;
    }
    
    .navbar-actions {
        padding-left: 0.75rem;
    }
}

/* Mobile Responsive - Professional Navbar */
@media (max-width: 991px) {
    .navbar-toggler-modern {
        display: flex;
        margin-right: 0.5rem;
        margin-top: 0.25rem;
        width: 24px;
        height: 24px;
        order: 1;
    }
    
    /* Hide hamburger button when menu is expanded */
    .navbar-toggler-modern[aria-expanded="true"] {
        display: none !important;
    }
    
    .navbar-modern {
        padding: 0.25rem 0 !important;
        min-height: 48px;
    }
    
    .navbar-modern .container {
        flex-wrap: nowrap;
        align-items: center;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        gap: 0.25rem;
        position: relative;
    }
    
    .navbar-spacer {
        height: 48px !important;
    }
    
    /* Brand/Logo - icon only on mobile, hide text */
    .navbar-brand-modern {
        order: 2;
        flex: 0 0 auto;
        padding: 0 !important;
        margin-right: auto;
        gap: 0;
    }
    
    .brand-text {
        display: none !important;
    }
    
    .brand-icon,
    .navbar-logo {
        width: 36px !important;
        height: 36px !important;
        margin-right: 0 !important;
        flex-shrink: 0;
    }
    
    .navbar-logo {
        object-fit: contain;
        border-radius: 8px;
    }
    
    /* Hide top bar brand on mobile - only show in menu */
    .navbar-brand-modern:not(.mobile-brand) {
        display: none !important;
    }
    
    /* Hide top bar user actions on mobile - they're in the menu now */
    .desktop-actions {
        display: none !important;
    }
    
    /* Show mobile menu actions on mobile */
    .mobile-menu-actions {
        display: flex !important;
    }
    
    /* Show mobile menu brand on mobile */
    .mobile-menu-brand {
        display: flex !important;
    }
    
    /* Ensure navbar-actions is outside collapse */
    #navbarNav {
        order: 4;
    }
    
    /* Don't hide mobile menu actions inside collapse - they should show */
    .navbar-collapse .mobile-menu-actions,
    .navbar-collapse .mobile-menu-brand {
        display: flex !important;
    }
    
    /* Only hide desktop actions if they're inside collapse */
    .navbar-collapse .desktop-actions {
        display: none !important;
    }
    
    /* Ensure container uses flexbox properly */
    .navbar-modern .container {
        display: flex !important;
        flex-wrap: nowrap !important;
    }
    
    /* Ensure menu is hidden by default on mobile */
    .navbar-collapse {
        transition: all 0.3s ease-in-out;
    }
    
    /* Hide menu when collapsed */
    .navbar-collapse:not(.show) {
        display: none !important;
    }
    
    /* Show menu when expanded */
    .navbar-collapse.show {
        display: block !important;
        width: 100%;
        order: 5;
        margin-top: 0.5rem;
        padding-top: 3rem;
        padding-right: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        text-align: center;
        position: relative;
    }
    
    /* Mobile Menu Close Button - Hidden by default, only show when menu is expanded */
    .mobile-menu-close {
        position: absolute;
        top: 0.75rem;
        right: 1rem;
        background: transparent;
        border: none;
        font-size: 1.5rem;
        color: var(--text-dark);
        cursor: pointer;
        padding: 0.5rem;
        display: none !important; /* Hidden by default */
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        transition: all 0.3s ease;
        z-index: 1002;
        opacity: 0.7;
        visibility: hidden;
    }
    
    /* Show close button only when menu is expanded on mobile */
    .navbar-collapse.show .mobile-menu-close {
        display: flex !important;
        visibility: visible !important;
    }
    
    .mobile-menu-close:hover,
    .mobile-menu-close:focus {
        background: rgba(0, 0, 0, 0.05);
        color: var(--primary-color);
        opacity: 1;
        transform: scale(1.1);
    }
    
    .mobile-menu-close i {
        font-size: 1.5rem;
        line-height: 1;
    }
    
    /* User menu button - clean professional design */
    .user-menu-btn {
        width: auto !important;
        padding: 0.5rem 0.9rem !important;
        justify-content: center;
        min-width: fit-content;
        border-radius: 8px;
        font-size: 0.9rem;
        gap: 0.5rem;
        border: 1px solid rgba(0, 0, 0, 0.1);
        background: rgba(255, 255, 255, 0.9);
    }
    
    .user-menu-btn:hover {
        background: rgba(0, 0, 0, 0.05);
        border-color: var(--primary-color);
    }
    
    .user-avatar {
        width: 28px !important;
        height: 28px !important;
        font-size: 1rem !important;
        flex-shrink: 0;
    }
    
    .user-name {
        font-size: 0.85rem;
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-weight: 500;
    }
    
    .user-menu-btn i.bi-chevron-down {
        font-size: 0.8rem;
        margin-left: 0;
        flex-shrink: 0;
    }
    
    /* Nav links in collapsed menu - centered when expanded */
    .navbar-collapse .navbar-nav-modern,
    .navbar-collapse.show .navbar-nav-modern,
    .navbar-nav-modern {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important; /* Override flex-start */
        gap: 4px !important;
        padding: 1rem 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin: 0 auto !important;
        width: 100% !important;
        text-align: center !important;
        list-style: none !important;
    }
    
    /* Override Bootstrap me-auto class */
    .navbar-nav-modern.me-auto,
    .navbar-collapse .navbar-nav-modern.me-auto {
        margin-right: 0 !important;
        margin-left: 0 !important;
        margin: 0 auto !important;
    }
    
    .navbar-collapse .nav-item-modern,
    .nav-item-modern {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto !important;
        text-align: center !important;
        flex-shrink: 0 !important;
    }
    
    /* Ensure nav links are properly centered */
    .navbar-collapse .nav-link-modern,
    .navbar-collapse.show .nav-link-modern,
    .nav-link-modern {
        width: auto !important;
        min-width: 200px !important;
        max-width: 300px !important;
        padding: 12px 16px !important;
        text-align: center !important;
        justify-content: center !important;
        display: flex !important;
        align-items: center !important;
        margin: 0 auto !important;
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }
    
    /* Center the icon and text within nav links */
    .navbar-collapse .nav-link-modern i,
    .nav-link-modern i {
        margin-right: 6px;
        flex-shrink: 0;
    }
    
    .navbar-collapse .nav-link-modern .nav-text,
    .nav-link-modern .nav-text {
        text-align: center !important;
    }
    
    /* Mobile menu brand - show after FAQ */
    .mobile-menu-brand {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 1rem 0;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
    }
    
    .mobile-menu-brand .mobile-brand {
        display: flex;
        flex-direction: column;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem;
        width: 100%;
        text-align: center;
    }
    
    .mobile-menu-brand .brand-text {
        display: block !important;
        text-align: center !important;
    }
    
    .mobile-menu-brand .brand-name {
        font-size: 1.1rem;
        color: var(--primary-color);
        font-weight: 700;
        text-align: center !important;
    }
    
    .mobile-menu-brand .brand-icon,
    .mobile-menu-brand .navbar-logo {
        width: 60px !important;
        height: 60px !important;
        margin: 0 !important;
    }
    
    /* Mobile menu actions - show after logo */
    .mobile-menu-actions {
        display: flex !important;
        flex-direction: column;
        align-items: center !important;
        justify-content: center !important;
        width: 100%;
        padding: 1rem 0;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        gap: 0.75rem;
        text-align: center;
    }
    
    .mobile-menu-actions .user-menu-btn {
        width: 100%;
        max-width: 350px;
        padding: 1rem 1.5rem !important;
        font-size: 1.05rem !important;
        justify-content: center !important;
        margin: 0 auto;
        text-align: center;
    }
    
    .mobile-menu-actions .user-avatar {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.3rem !important;
    }
    
    .mobile-menu-actions .user-name {
        font-size: 1rem !important;
        max-width: 150px !important;
        font-weight: 600 !important;
    }
    
    .mobile-menu-actions .user-menu-btn i.bi-chevron-down {
        font-size: 1rem !important;
    }
    
    .btn-modern {
        width: 100%;
        justify-content: center;
    }
    
    .nav-link-modern .nav-text {
        display: inline;
    }
    
    .btn-modern .btn-text {
        display: inline;
    }
}

/* Hide mobile menu close button on desktop and when menu is collapsed */
.mobile-menu-close {
    display: none !important;
}

/* Show only when menu is expanded on mobile */
@media (max-width: 991px) {
    .navbar-collapse.show .mobile-menu-close {
        display: flex !important;
    }
}

/* Force hide on desktop */
@media (min-width: 992px) {
    .mobile-menu-close,
    .navbar-collapse .mobile-menu-close,
    .navbar-collapse.show .mobile-menu-close {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

/* Also hide when menu is not expanded on mobile */
.navbar-collapse:not(.show) .mobile-menu-close {
    display: none !important;
}

/* Desktop - show desktop actions, hide mobile menu items */
@media (min-width: 992px) {
    .desktop-actions {
        display: flex !important;
    }
    
    .mobile-menu-brand,
    .mobile-menu-actions {
        display: none !important;
    }
}

/* Extra small screens - even more compact */
@media (max-width: 576px) {
    .navbar-modern .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        gap: 0.25rem;
    }
    
    .brand-icon,
    .navbar-logo {
        width: 32px !important;
        height: 32px !important;
    }
    
    .user-menu-btn {
        padding: 0.3rem 0.5rem !important;
    }
    
    .user-name {
        max-width: 50px;
        font-size: 0.7rem;
    }
    
    .user-avatar {
        width: 20px !important;
        height: 20px !important;
    }
    
    /* Hero section - extra small screens */
    .hero-section {
        padding: 30px 0 30px !important;
    }
    
    .hero-section h1 {
        font-size: 1.5rem !important;
    }
    
    .hero-section .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* Badge Styles */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
    filter: blur(0) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1;
}

/* Ensure card headers with badges are clear */
.card-header .badge {
    filter: blur(0) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Specific fix for application status badges */
.card-header .badge.bg-secondary,
.card-header .badge.bg-warning,
.card-header .badge.bg-success,
.card-header .badge.bg-danger,
.card-header .badge.bg-info {
    filter: blur(0) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    text-shadow: none;
}

/* Form Enhancements */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 18px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 86, 63, 0.1);
    outline: none;
}

/* Job Card Enhancement */
.job-card {
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
}

.job-card:hover {
    border-left-width: 6px;
    transform: translateX(5px);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 60px 0;
    border-radius: var(--border-radius);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0 40px !important; /* Override inline style */
        margin-top: 0 !important;
    }
    
    .hero-section h1 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
        text-align: center;
    }
    
    .hero-section p {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
        text-align: center;
    }
    
    /* Fix button layout on mobile */
    .hero-section .d-flex {
        flex-wrap: wrap !important;
        gap: 0.75rem !important;
        justify-content: center;
    }
    
    .hero-section .btn {
        flex: 0 0 auto;
        min-width: 140px;
        padding: 12px 20px !important;
        font-size: 0.9rem;
    }
    
    /* Center badge */
    .hero-section .badge {
        display: block;
        text-align: center;
        margin: 0 auto 1rem;
        width: fit-content;
    }
    
    /* Center content column on mobile */
    .hero-section .col-lg-7 {
        text-align: center;
    }
    
    .hero-section .row {
        justify-content: center;
    }
    
    .search-bar {
        margin-top: -40px;
        padding: 20px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .feature-card {
        padding: 2rem;
        margin-bottom: 1.5rem;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Statistics Section */
.stats-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin-top: -40px;
    position: relative;
    z-index: 5;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    height: 100%;
    min-height: auto;
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 600;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0.5rem 0 0 0;
    font-weight: 500;
}

/* Quick Filters */
.quick-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(0, 86, 63, 0.1);
    border: 1px solid rgba(0, 86, 63, 0.2);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-chip:hover,
.filter-chip.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.filter-chip i {
    font-size: 0.9rem;
}

/* How It Works Section */
.how-it-works-section {
    padding: 80px 0;
    background: white;
}

.how-it-works-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
}

.how-it-works-card:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-5px);
}

.card-header-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.card-header-custom h4 {
    color: white;
    font-weight: 700;
}

.card-header-custom i {
    font-size: 1.5rem;
    margin-right: 10px;
}

.steps-container {
    padding: 2rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 23px;
    top: 50px;
    width: 2px;
    height: calc(100% + 1rem);
    background: linear-gradient(180deg, var(--primary-color), transparent);
}

.step-number {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 86, 63, 0.3);
}

.step-content {
    flex: 1;
    padding-top: 5px;
}

.step-content h5 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.step-content p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

.card-footer-custom {
    padding: 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 80px 0;
}

.testimonials-carousel {
    padding: 2rem 0;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 80px;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.testimonial-rating {
    display: flex;
    gap: 3px;
}

.testimonial-rating i {
    font-size: 1.2rem;
}

.testimonial-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 1.5rem 0;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.testimonial-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-photo-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #adb5bd;
}

.testimonial-author h6 {
    margin: 0;
    color: var(--dark-color);
}

.testimonial-author small {
    display: block;
    margin-top: 2px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: brightness(0) invert(1);
}

/* Success Stories Section */
.success-stories-section {
    padding: 80px 0;
    background: white;
}

.success-story-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.success-story-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
    border-left-width: 6px;
}

.story-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.story-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.story-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.story-footer {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Page Hero Section */
.page-hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 100px 0 60px;
    margin-top: -80px;
    position: relative;
    z-index: 1;
}

.page-hero-section h1 {
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.faq-category-title i {
    font-size: 1.8rem;
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.accordion-button {
    background: white;
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-body {
    background: white;
    padding: 1.5rem;
    color: var(--text-dark);
    line-height: 1.7;
}

/* Pricing Hero Section */
.pricing-hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.pricing-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

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

.pricing-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.pricing-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.pricing-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.pricing-hero-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 50px;
    color: white;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.pricing-hero-feature-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.pricing-hero-feature-item i {
    font-size: 1.1rem;
}

.pricing-hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.pricing-hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite ease-in-out;
}

.pricing-hero-shapes .shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.pricing-hero-shapes .shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation-delay: 5s;
}

.pricing-hero-shapes .shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 86, 63, 0.2);
    border-color: rgba(0, 86, 63, 0.1);
}

.pricing-card-featured {
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 86, 63, 0.25);
}

.pricing-card-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--primary-color));
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.pricing-card-featured:hover {
    transform: scale(1.05) translateY(-15px);
    box-shadow: 0 25px 60px rgba(0, 86, 63, 0.3);
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 8px 45px;
    font-size: 0.85rem;
    font-weight: 700;
    transform: rotate(45deg);
    box-shadow: 0 4px 15px rgba(0, 86, 63, 0.4);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pricing-badge i {
    font-size: 0.9rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.pricing-header {
    padding: 3rem 2rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.pricing-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 86, 63, 0.2);
    transition: all 0.3s ease;
}

.pricing-card:hover .pricing-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(0, 86, 63, 0.3);
}

.pricing-icon {
    font-size: 2rem;
    color: white;
}

.pricing-card-featured .pricing-icon-wrapper {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-lighter));
    box-shadow: 0 10px 25px rgba(0, 86, 63, 0.3);
}

.pricing-plan-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 1rem;
}

.pricing-price .currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.pricing-price .amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark-color);
    line-height: 1;
}

.pricing-price .period {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

.pricing-description {
    color: var(--text-light);
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.pricing-savings {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 86, 63, 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.pricing-savings i {
    font-size: 0.9rem;
}

.pricing-body {
    padding: 2rem;
    flex: 1;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-features span {
    flex: 1;
    line-height: 1.6;
}

.pricing-footer {
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.btn-pricing-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-pricing-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-pricing-modern:hover::before {
    width: 300px;
    height: 300px;
}

.btn-pricing-modern i {
    transition: transform 0.3s ease;
}

.btn-pricing-modern:hover i {
    transform: translateX(4px);
}

.btn-primary-modern {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 86, 63, 0.3);
}

.btn-primary-modern:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    box-shadow: 0 6px 20px rgba(0, 86, 63, 0.4);
    transform: translateY(-2px);
}

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

.btn-outline-primary-modern:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 86, 63, 0.3);
}

/* Comparison Table */
.comparison-section {
    padding: 80px 0;
    background: white;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.comparison-table th {
    padding: 1.5rem;
    text-align: left;
    font-weight: 700;
    font-size: 1.1rem;
}

.comparison-table th:first-child {
    border-radius: var(--border-radius) 0 0 0;
}

.comparison-table th:last-child {
    border-radius: 0 var(--border-radius) 0 0;
}

.comparison-table tbody tr {
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.comparison-table tbody tr:hover {
    background: rgba(0, 86, 63, 0.08);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 86, 63, 0.1);
}

.comparison-table td {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--dark-color);
}

.comparison-table td {
    text-align: center;
}

.comparison-table td:first-child {
    text-align: left;
}

.comparison-table i {
    font-size: 1.3rem;
}

/* Pricing FAQ Section */
.pricing-faq-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Pricing CTA Section */
.pricing-cta-section {
    padding: 80px 0;
    background: white;
}

.pricing-cta-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--secondary-color) 100%);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    border-radius: 24px;
    padding: 4rem 3rem;
    color: white;
    box-shadow: 0 20px 60px rgba(0, 86, 63, 0.3);
    position: relative;
    overflow: hidden;
}

.pricing-cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pricing-cta-card > * {
    position: relative;
    z-index: 2;
}

.pricing-cta-card h2 {
    color: white;
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pricing-cta-card p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-pricing-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-light-modern {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-light-modern:hover {
    background: #f8f9fa;
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline-light-modern {
    border: 2px solid white;
    color: white;
    background: transparent;
    backdrop-filter: blur(10px);
}

.btn-outline-light-modern:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: white;
}

/* Responsive Pricing */
@media (max-width: 991px) {
    .pricing-hero-section {
        padding: 100px 0 60px;
    }
    
    .pricing-hero-features {
        gap: 1rem;
    }
    
    .pricing-hero-feature-item {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .pricing-card-featured {
        transform: scale(1);
        margin-top: 2rem;
    }
    
    .pricing-card-featured:hover {
        transform: translateY(-10px);
    }
    
    .pricing-icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .pricing-icon {
        font-size: 1.75rem;
    }
    
    .comparison-table-wrapper {
        font-size: 0.9rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 1rem 0.75rem;
    }
    
    .pricing-cta-card {
        padding: 3rem 2rem;
    }
    
    .pricing-cta-card .btn-lg {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    .pricing-hero-section {
        padding: 80px 0 40px;
    }
    
    .pricing-hero-title {
        font-size: 2rem;
    }
    
    .pricing-hero-subtitle {
        font-size: 1rem;
    }
    
    .pricing-hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-section {
        padding: 60px 0;
    }
    
    .pricing-price .amount {
        font-size: 2.5rem;
    }
    
    .pricing-price .currency {
        font-size: 1.25rem;
    }
    
    .pricing-price .period {
        font-size: 0.9rem;
    }
    
    .pricing-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .pricing-icon {
        font-size: 1.5rem;
    }
    
    .comparison-section {
        padding: 60px 0;
    }
    
    .pricing-faq-section {
        padding: 60px 0;
    }
    
    .pricing-cta-section {
        padding: 60px 0;
    }
    
    .pricing-cta-card {
        padding: 3rem 2rem;
    }
    
    .pricing-cta-card h2 {
        font-size: 2rem;
    }
    
    .pricing-cta-card p {
        font-size: 1rem;
    }
    
    .btn-pricing-cta {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.75rem;
    }
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--border-radius);
    padding: 3rem;
    color: white;
    box-shadow: var(--box-shadow-lg);
}

.cta-card h2 {
    color: white;
    font-weight: 800;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.cta-card .btn-light {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
}

.cta-card .btn-outline-light {
    border: 2px solid white;
    color: white;
}

.cta-card .btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
}

/* Responsive Updates */
@media (max-width: 768px) {
    .stats-section {
        padding: 40px 0;
        margin-top: -30px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .stat-icon {
        margin: 0 auto;
    }
    
    .how-it-works-section {
        padding: 50px 0;
    }
    
    .steps-container {
        padding: 1.5rem;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
    }
    
    .step-item::after {
        display: none;
    }
    
    .testimonials-section {
        padding: 50px 0;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    
    .success-stories-section {
        padding: 50px 0;
    }
    
    .faq-section {
        padding: 50px 0;
    }
    
    .cta-section {
        padding: 50px 0;
    }
    
    .cta-card {
        padding: 2rem;
    }
    
    .cta-card .btn-lg {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .page-hero-section {
        padding: 80px 0 40px;
        margin-top: -70px;
    }
    
    .faq-category-title {
        font-size: 1.25rem;
    }
}

/* Dashboard Styles */
.dashboard-container {
    min-height: auto; /* Change from calc(100vh - 80px) to allow natural height */
    background: #f8f9fa;
    display: flex;
    margin-top: 10px;
    overflow: visible; /* Prevent clipping of content */
    position: relative; /* Ensure proper positioning */
    flex: 1; /* Work with flex layout */
}

/* Remove dashboard container top margin on mobile */
@media (max-width: 992px) {
    .dashboard-container {
        margin-top: 0 !important;
    }
}

.dashboard-container .container {
    overflow: visible; /* Ensure container doesn't clip action tiles */
    position: relative; /* Ensure proper positioning */
    padding-bottom: 2rem; /* Add spacing before footer */
}

/* Reduced to 30% - container padding on mobile */
@media (max-width: 992px) {
    .dashboard-container .container {
        padding-bottom: 0.12rem !important;
    }
}

@media (max-width: 768px) {
    .dashboard-container .container {
        padding-bottom: 0.09rem !important;
    }
}

/* Admin Sidebar */
.admin-sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    height: calc(100vh - 80px);
    position: fixed;
    left: 0;
    top: 80px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 86, 63, 0.3) #f1f1f1;
}

.admin-sidebar::-webkit-scrollbar {
    width: 8px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 86, 63, 0.3);
    border-radius: 4px;
    border: 1px solid #f1f1f1;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 86, 63, 0.5);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

/* Reduced to 30% - sidebar header on mobile */
@media (max-width: 768px) {
    .sidebar-header {
        padding: 0.18rem 0.3rem !important;
    }
}

.sidebar-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.sidebar-header p {
    margin: 0.25rem 0 0 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.sidebar-menu {
    padding: 1rem 0;
    list-style: none;
    margin: 0;
}

/* Reduced to 30% - sidebar menu on mobile */
@media (max-width: 768px) {
    .sidebar-menu {
        padding: 0.12rem 0 !important;
    }
}

.sidebar-menu-item {
    margin: 0.25rem 0;
}

/* Reduced to 30% - sidebar menu items on mobile */
@media (max-width: 768px) {
    .sidebar-menu-item {
        margin: 0.03rem 0 !important;
    }
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Reduced to 30% - sidebar menu links on mobile */
@media (max-width: 768px) {
    .sidebar-menu-link {
        padding: 0.09rem 0.3rem !important;
    }
}

.sidebar-menu-link:hover {
    background: rgba(0, 86, 63, 0.05);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-menu-link.active {
    background: rgba(0, 86, 63, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.sidebar-menu-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-menu-section {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-top: 1rem;
}

.sidebar-menu-section:first-child {
    margin-top: 0;
}

/* Dashboard Main Content */
.dashboard-main {
    flex: 1;
    margin-left: 280px;
    transition: margin-left 0.3s ease;
    padding-top: 0;
    margin-top: 0;
    width: calc(100% - 280px);
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Admin Content Header */
.admin-content-header {
    margin-bottom: 0.12rem;
    padding-bottom: 0.06rem;
}

.admin-content-title {
    margin-bottom: 0.025rem;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.admin-content-subtitle {
    margin-bottom: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.2;
}

.dashboard-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 86, 63, 0.15);
}

/* Reduced to 30% - dashboard header spacing on mobile */
@media (max-width: 992px) {
    .dashboard-header {
        padding: 0.12rem 0 !important;
        margin-bottom: 0.12rem !important;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        padding: 0.09rem 0 !important;
        margin-bottom: 0.06rem !important;
    }
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.dashboard-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-weight: 400;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 90px;
    left: 20px;
    z-index: 1001;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Sidebar Overlay - Hidden by default on desktop */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    pointer-events: none;
}

/* Responsive Sidebar */
@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(-100%);
        width: 85vw !important; /* More responsive width */
        max-width: 320px; /* Cap at 320px */
        top: 0 !important; /* Start from top on mobile */
        height: 100vh !important; /* Full height */
        z-index: 999 !important;
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
    
    .dashboard-main {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .sidebar-toggle {
        display: block !important;
        position: fixed;
        top: 15px !important; /* Lower from 90px to avoid navbar conflict */
        left: 15px !important;
        z-index: 1050 !important; /* Higher z-index */
        background: var(--primary-color) !important;
        color: white !important;
        border: none !important;
        border-radius: 8px;
        padding: 0.75rem !important; /* Larger touch target */
        width: 44px;
        height: 44px;
        box-shadow: 0 4px 12px rgba(0, 86, 63, 0.3) !important;
    }
    
    .sidebar-toggle i {
        font-size: 1.5rem !important;
    }
    
    .sidebar-overlay {
        pointer-events: auto;
        z-index: 998 !important;
        top: 0 !important; /* Start from top */
    }
    
    .sidebar-overlay.show {
        display: block !important;
    }
    
    /* Reduce top spacing on mobile */
    .dashboard-container {
        margin-top: 0 !important; /* Remove top margin on mobile */
    }
    
    .dashboard-main .container {
        padding-top: 0 !important; /* Remove padding completely */
    }
    
    /* Reduced to 30% - tablets */
    .mb-4 {
        margin-bottom: 0.075rem !important;
    }
    
    .mb-5 {
        margin-bottom: 0.1rem !important;
    }
    
    .mt-4 {
        margin-top: 0.075rem !important;
    }
    
    .mt-5 {
        margin-top: 0.1rem !important;
    }
    
    .row.g-4 {
        gap: 0.1rem !important;
    }
}

/* Smaller screens */
@media (max-width: 768px) {
    .sidebar-toggle {
        top: 10px !important;
        left: 10px !important;
        padding: 0.6rem !important;
        width: 40px;
        height: 40px;
    }
    
    .admin-sidebar {
        width: 90vw !important;
        max-width: 300px;
    }
    
    .dashboard-container {
        margin-top: 0 !important;
    }
    
    .dashboard-main .container {
        padding-top: 0 !important; /* Remove padding completely on small screens */
    }
    
    .navbar-modern {
        padding: 0.024rem 0 !important; /* Reduced to 30% */
    }
    
    .navbar-spacer {
        height: 9px !important; /* Reduced to 30% */
    }
    
    /* Reduced to 30% - mobile */
    .mb-4 {
        margin-bottom: 0.03rem !important;
    }
    
    .mb-5 {
        margin-bottom: 0.06rem !important;
    }
    
    .mt-4 {
        margin-top: 0.03rem !important;
    }
    
    .mt-5 {
        margin-top: 0.06rem !important;
    }
    
    .py-4 {
        padding-top: 0.06rem !important;
        padding-bottom: 0.06rem !important;
    }
    
    .py-5 {
        padding-top: 0.09rem !important;
        padding-bottom: 0.09rem !important;
    }
    
    .admin-content-header {
        margin-bottom: 0.03rem !important; /* Reduced to 30% */
        padding-bottom: 0 !important;
        margin-top: 0 !important;
    }
    
    .admin-content-title {
        font-size: 1.15rem !important;
        margin-bottom: 0.015rem !important;
        line-height: 1.15 !important;
    }
    
    .admin-content-subtitle {
        font-size: 0.75rem !important;
        margin-bottom: 0 !important;
        line-height: 1.2 !important;
    }
    
    .row.g-4 {
        gap: 0.075rem !important; /* Reduced to 30% */
    }
    
    /* Reduced to 30% - card spacing */
    .card {
        margin-bottom: 0.09rem !important;
    }
    
    /* Reduced to 30% - alert spacing */
    .alert {
        margin-bottom: 0.09rem !important;
        padding: 0.12rem 0.225rem !important;
    }
}

/* Stat Cards - Enhanced Modern Design */
.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
    height: 100%;
    cursor: pointer;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), 0 3px 6px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.1);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card-primary {
    border-left-color: var(--primary-color);
    background: linear-gradient(135deg, #ffffff 0%, rgba(0, 86, 63, 0.02) 100%);
}

.stat-card-primary:hover {
    background: linear-gradient(135deg, #ffffff 0%, rgba(0, 86, 63, 0.04) 100%);
}

.stat-card-primary .stat-card-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    box-shadow: 0 2px 6px rgba(0, 86, 63, 0.2);
}

.stat-card-info {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, #ffffff 0%, rgba(23, 162, 184, 0.02) 100%);
}

.stat-card-info:hover {
    background: linear-gradient(135deg, #ffffff 0%, rgba(23, 162, 184, 0.04) 100%);
}

.stat-card-info .stat-card-icon {
    background: linear-gradient(135deg, #17a2b8 0%, #5bc0de 100%);
    box-shadow: 0 2px 6px rgba(23, 162, 184, 0.2);
}

.stat-card-success {
    border-left-color: var(--success-color);
    background: linear-gradient(135deg, #ffffff 0%, rgba(40, 167, 69, 0.02) 100%);
}

.stat-card-success:hover {
    background: linear-gradient(135deg, #ffffff 0%, rgba(40, 167, 69, 0.04) 100%);
}

.stat-card-success .stat-card-icon {
    background: linear-gradient(135deg, var(--success-color) 0%, #00d99f 100%);
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.2);
}

.stat-card-warning {
    border-left-color: var(--warning-color);
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 193, 7, 0.02) 100%);
}

.stat-card-warning:hover {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 193, 7, 0.04) 100%);
}

.stat-card-warning .stat-card-icon {
    background: linear-gradient(135deg, var(--warning-color) 0%, #ffd369 100%);
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.2);
}

.stat-card-secondary {
    border-left-color: #6c757d;
    background: linear-gradient(135deg, #ffffff 0%, rgba(108, 117, 125, 0.02) 100%);
}

.stat-card-secondary:hover {
    background: linear-gradient(135deg, #ffffff 0%, rgba(108, 117, 125, 0.04) 100%);
}

.stat-card-secondary .stat-card-icon {
    background: linear-gradient(135deg, #6c757d 0%, #868e96 100%);
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.2);
}

.stat-card-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover .stat-card-icon {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.stat-card-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover .stat-card-icon::after {
    opacity: 1;
}

.stat-card-content {
    flex: 1;
    overflow: visible;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.stat-card-content > div {
    width: 100%;
    min-width: 0;
}

/* Ensure consistent card heights in rows */
.row.g-4 .stat-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

/* Responsive adjustments for stat cards */
@media (max-width: 768px) {
    .stat-card {
        min-height: 100px;
        padding: 0.875rem;
    }
    
    .stat-card-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        font-size: 1.1rem;
    }
    
    .stat-card-number {
        font-size: 1.35rem;
    }
}

.stat-card-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 0.25rem;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.stat-card-label {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    opacity: 0.85;
    line-height: 1.2;
}

.stat-card-content small {
    font-size: 0.65rem;
    line-height: 1.3;
    display: block;
    color: var(--text-light);
    opacity: 0.75;
    margin-top: 0.15rem;
    overflow: hidden;
    word-wrap: break-word;
    white-space: normal;
}

/* Trend Indicators - Enhanced */
.trend-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.trend-indicator.trend-up {
    color: #28a745;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, rgba(40, 167, 69, 0.08) 100%);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.trend-indicator.trend-up:hover {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2) 0%, rgba(40, 167, 69, 0.12) 100%);
    transform: scale(1.05);
}

.trend-indicator.trend-down {
    color: #dc3545;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15) 0%, rgba(220, 53, 69, 0.08) 100%);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.trend-indicator.trend-down:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2) 0%, rgba(220, 53, 69, 0.12) 100%);
    transform: scale(1.05);
}

.trend-indicator i {
    font-size: 0.85rem;
    font-weight: 700;
}

/* Stat Card Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card {
    animation: fadeInUp 0.5s ease-out backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }
.stat-card:nth-child(5) { animation-delay: 0.25s; }
.stat-card:nth-child(6) { animation-delay: 0.3s; }
.stat-card:nth-child(7) { animation-delay: 0.35s; }
.stat-card:nth-child(8) { animation-delay: 0.4s; }

/* Responsive Stat Cards */
@media (max-width: 992px) {
    .stat-card {
        padding: 0.85rem;
        gap: 0.85rem;
    }
    
    .stat-card-icon {
        width: 30px;
        height: 30px;
        font-size: 0.95rem;
    }
    
    .stat-card-number {
        font-size: 1.4rem;
    }
    
    .stat-card-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .stat-card {
        padding: 0.8rem;
        gap: 0.8rem;
        border-radius: 10px;
    }
    
    .stat-card-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
        border-radius: 6px;
    }
    
    .stat-card-number {
        font-size: 1.3rem;
    }
    
    .stat-card-label {
        font-size: 0.75rem;
    }
    
    .stat-card-content small {
        font-size: 0.65rem;
    }
    
    .trend-indicator {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

@media (max-width: 576px) {
    .stat-card {
        padding: 0.75rem;
        gap: 0.7rem;
    }
    
    .stat-card-icon {
        width: 26px;
        height: 26px;
        font-size: 0.85rem;
    }
    
    .stat-card-number {
        font-size: 1.2rem;
    }
}

/* Subscription Card */
.subscription-card {
    border-left: 4px solid var(--warning-color);
    box-shadow: var(--box-shadow);
}

.subscription-card.border-warning {
    border-left-color: var(--warning-color);
}

/* Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.quick-action-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.quick-action-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
    color: var(--text-dark);
}

.quick-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.quick-action-text {
    flex: 1;
}

.quick-action-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
    color: var(--text-dark);
}

.quick-action-desc {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
}

/* Card Header Modern */
.card-header-modern {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid rgba(0, 86, 63, 0.1);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.card-header-modern h5 {
    color: var(--text-dark);
    font-weight: 700;
}

.card-header-modern i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--text-light);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Recent Jobs List */
.recent-jobs-list {
    max-height: 400px;
    overflow-y: auto;
}

.recent-job-item {
    padding-bottom: 0.5rem;
}

.recent-job-item:last-child hr {
    display: none;
}

.recent-job-item h6 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Avatar */
.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Table Hover */
.table-hover tbody tr {
    transition: all 0.2s ease;
}

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

/* Activity Timeline (CRM) */
.activity-timeline {
    position: relative;
    padding-left: 2rem;
}

.activity-item {
    position: relative;
    padding-bottom: 1.5rem;
    padding-left: 2rem;
}

.activity-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 2.5rem;
    bottom: -1rem;
    width: 2px;
    background: rgba(0, 0, 0, 0.1);
}

.activity-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    z-index: 2;
}

.activity-content {
    background: white;
    padding: 0.75rem;
    border-radius: 8px;
}

.activity-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.activity-description {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.activity-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Task Items (CRM) */
.task-item {
    transition: all 0.2s ease;
}

.task-item:hover {
    background: rgba(0, 86, 63, 0.02);
    border-radius: 8px;
    padding: 0.75rem;
    margin: -0.75rem;
}

/* Customer Items (CRM) */
.customer-item {
    transition: all 0.2s ease;
}

.customer-item:hover {
    background: rgba(0, 86, 63, 0.02);
    border-radius: 8px;
    padding: 0.75rem;
    margin: -0.75rem;
}

/* Stat Card Secondary */
.stat-card-secondary {
    border-left-color: #6c757d;
}

.stat-card-secondary .stat-card-icon {
    background: linear-gradient(135deg, #6c757d, #868e96);
}


/* Newsletter Section */
.footer-newsletter {
    background: linear-gradient(135deg, #00563F 0%, #007a5a 100%);
    color: white;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative; /* Ensure proper positioning */
    z-index: 1; /* Ensure footer is above other content */
    width: 100%; /* Full width */
    clear: both; /* Clear any floats */
    flex-shrink: 0; /* Prevent footer from shrinking */
    margin-top: auto; /* Push footer to bottom */
}

.newsletter-content {
    color: white;
}

.newsletter-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-title i {
    color: #ffd700;
}

.newsletter-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin: 0;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form .input-group {
    display: flex;
    width: 100%;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 0.95rem;
    background: white;
    color: #212529;
}

.newsletter-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.newsletter-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0 8px 8px 0;
    border: none;
    background: #ffd700;
    color: #00563F;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.newsletter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.newsletter-message {
    min-height: 24px;
}

.newsletter-message .alert-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    margin: 0;
}

/* Newsletter Section - Mobile Responsive */
@media (max-width: 768px) {
    .footer-newsletter {
        padding: 1.5rem 0 !important; /* Reduce padding on mobile */
    }
    
    .footer-newsletter .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .newsletter-content {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .newsletter-title {
        font-size: 1.25rem !important;
        justify-content: center;
    }
    
    .newsletter-description {
        font-size: 0.9rem !important;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .newsletter-form .input-group {
        flex-direction: column !important;
        width: 100% !important;
        display: flex !important;
        gap: 0.5rem;
    }
    
    .newsletter-form .input-group .form-control,
    .newsletter-input {
        border-radius: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        margin-bottom: 0 !important;
        display: block !important;
    }
    
    .newsletter-form .input-group .btn,
    .newsletter-btn {
        border-radius: 8px !important;
        width: 100% !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem;
        margin: 0 !important;
    }
}

/* Extra small screens */
@media (max-width: 576px) {
    .footer-newsletter {
        padding: 1rem 0 !important;
    }
    
    .footer-newsletter .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .newsletter-title {
        font-size: 1.1rem !important;
    }
    
    .newsletter-description {
        font-size: 0.85rem !important;
    }
    
    .newsletter-form .input-group .form-control,
    .newsletter-input {
        padding: 0.7rem 0.9rem !important;
        font-size: 0.9rem !important;
    }
    
    .newsletter-form .input-group .btn,
    .newsletter-btn {
        padding: 0.7rem 0.9rem !important;
        font-size: 0.9rem !important;
    }
}

/* Modern Footer */
.footer-modern {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #e0e0e0;
    padding: 4rem 0 2rem;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: hidden;
    overflow-y: visible; /* Allow vertical overflow */
    width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
    position: relative;
    clear: both;
    z-index: 1; /* Ensure footer is above other content */
    flex-shrink: 0; /* Prevent footer from shrinking */
    margin-top: auto; /* Push footer to bottom */
}

.footer-modern .container {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    max-width: 1200px; /* Standard container max-width */
    margin-right: auto; /* Center the container */
    margin-left: auto;
    width: 100%; /* Full width within max-width constraint */
    box-sizing: border-box;
    position: relative;
}

.footer-brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.footer-brand-title i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.footer-description {
    color: #b0b0b0;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Footer Contact Information */
.footer-contact {
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1rem;
    width: 20px;
    flex-shrink: 0;
}

.contact-item span {
    color: #e0e0e0;
}

.contact-item:hover span {
    color: white;
}

/* Enhanced Social Media */
.footer-social {
    margin-top: 1.5rem;
}

.social-label {
    display: block;
    font-size: 0.85rem;
    color: #b0b0b0;
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    border: 2px solid transparent;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 86, 63, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Footer Quick Actions */
.footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-actions .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.footer-actions .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.footer-actions .btn-primary:hover {
    background: #007a5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 63, 0.4);
}

.footer-actions .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: #e0e0e0;
}

.footer-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.25rem;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 8px;
}

.footer-links a:hover::before {
    width: 4px;
}

/* Trust Badges Section */
.footer-trust {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e0e0e0;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.trust-badge-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.trust-badge-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.trust-badge-item span {
    font-weight: 500;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.payment-label {
    color: #b0b0b0;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.payment-icons i {
    font-size: 1.5rem;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.payment-icons i:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.payment-text {
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .row {
    margin-right: -15px;
    margin-left: -15px;
}

.footer-bottom [class*="col-"] {
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;
}

.footer-bottom .text-md-end {
    padding-right: 2rem;
}

.footer-modern .row {
    margin-right: -15px;
    margin-left: -15px;
}

.footer-modern [class*="col-"] {
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;
}

.footer-copyright {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.footer-copyright strong {
    color: white;
    font-weight: 600;
}

.footer-tagline {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.footer-tagline i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-newsletter {
        padding: 2rem 0;
    }
    
    .newsletter-title {
        font-size: 1.25rem;
    }
    
    .newsletter-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-input {
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }
    
    .newsletter-btn {
        border-radius: 8px;
        width: 100%;
    }
    
    .footer-modern {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-modern .container {
        padding-right: calc(1rem + 20px);
        padding-left: 1rem;
        max-width: 100%;
    }
    
    .footer-modern .row {
        margin-right: -10px;
        margin-left: -10px;
    }
    
    .footer-modern [class*="col-"] {
        padding-right: 10px;
        padding-left: 10px;
    }
    
    .footer-contact {
        margin: 1rem 0;
        padding: 0.75rem 0;
    }
    
    .contact-item {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .social-links {
        gap: 0.5rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .footer-actions {
        flex-direction: column;
    }
    
    .footer-actions .btn {
        width: 100%;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .trust-badge-item {
        width: 100%;
        justify-content: flex-start;
    }
    
    .payment-methods {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .payment-icons {
        flex-wrap: wrap;
    }
    
    .footer-brand-title {
        font-size: 1.3rem;
    }
    
    .footer-heading {
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1.5rem;
        text-align: center;
    }
    
    .footer-bottom .col-md-6 {
        margin-bottom: 0.5rem;
    }
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-title {
        font-size: 1.75rem;
    }
    
    .dashboard-subtitle {
        font-size: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .stat-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .stat-card-number {
        font-size: 1.5rem;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-action-item {
        padding: 1rem;
    }
    
    .activity-timeline {
        padding-left: 1.5rem;
    }
    
    .activity-item {
        padding-left: 1.5rem;
    }
    
    .activity-icon {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.8rem;
    }
}

/* Enhanced System Alerts - Modern Notification Style */
.system-alerts-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.system-alerts-header {
    background: linear-gradient(135deg, #fff9e6 0%, #fff5d6 100%);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.system-alerts-icon {
    position: relative;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ffb84d 0%, #ffa726 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(255, 184, 77, 0.3);
}

.system-alerts-icon .alert-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #dc3545;
    color: white;
    border-radius: 10px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0 6px;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.4);
}

.system-alerts-header h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.system-alerts-header small {
    font-size: 0.8rem;
    color: var(--text-light);
}

.system-alerts-body {
    padding: 1rem;
}

.system-alerts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.system-alert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    padding-left: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: slideInAlert 0.4s ease-out backwards;
}

.system-alert-item:nth-child(1) { animation-delay: 0.05s; }
.system-alert-item:nth-child(2) { animation-delay: 0.1s; }
.system-alert-item:nth-child(3) { animation-delay: 0.15s; }
.system-alert-item:nth-child(4) { animation-delay: 0.2s; }

@keyframes slideInAlert {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.system-alert-item:hover {
    background: #f0f0f0;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.alert-priority-indicator {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 12px 0 0 12px;
}

.system-alert-danger .alert-priority-indicator {
    background: linear-gradient(180deg, #dc3545 0%, #c82333 100%);
}

.system-alert-warning .alert-priority-indicator {
    background: linear-gradient(180deg, #ffb84d 0%, #ffa726 100%);
}

.system-alert-info .alert-priority-indicator {
    background: linear-gradient(180deg, #17a2b8 0%, #138496 100%);
}

.system-alert-success .alert-priority-indicator {
    background: linear-gradient(180deg, #00c896 0%, #00a67f 100%);
}

.alert-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.system-alert-danger .alert-icon-wrapper {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15) 0%, rgba(220, 53, 69, 0.08) 100%);
    color: #dc3545;
}

.system-alert-warning .alert-icon-wrapper {
    background: linear-gradient(135deg, rgba(255, 184, 77, 0.15) 0%, rgba(255, 184, 77, 0.08) 100%);
    color: #ffb84d;
}

.system-alert-info .alert-icon-wrapper {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.15) 0%, rgba(23, 162, 184, 0.08) 100%);
    color: #17a2b8;
}

.system-alert-success .alert-icon-wrapper {
    background: linear-gradient(135deg, rgba(0, 200, 150, 0.15) 0%, rgba(0, 200, 150, 0.08) 100%);
    color: #00c896;
}

.alert-content {
    flex: 1;
    min-width: 0;
}

.alert-message {
    margin-bottom: 0.35rem;
}

.alert-message strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.alert-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.alert-timestamp {
    font-size: 0.75rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.alert-timestamp i {
    font-size: 0.7rem;
}

.alert-count-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    color: var(--text-dark);
    font-weight: 600;
}

.alert-actions {
    flex-shrink: 0;
}

.btn-alert-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.btn-alert-action i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.btn-alert-action:hover i {
    transform: translateX(2px);
}

.btn-alert-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.btn-alert-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    transform: translateY(-1px);
    color: white;
}

.btn-alert-warning {
    background: linear-gradient(135deg, #ffb84d 0%, #ffa726 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 184, 77, 0.3);
}

.btn-alert-warning:hover {
    background: linear-gradient(135deg, #ffa726 0%, #ff9800 100%);
    box-shadow: 0 4px 12px rgba(255, 184, 77, 0.4);
    transform: translateY(-1px);
    color: white;
}

.btn-alert-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

.btn-alert-info:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.4);
    transform: translateY(-1px);
    color: white;
}

.btn-alert-success {
    background: linear-gradient(135deg, #00c896 0%, #00a67f 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 200, 150, 0.3);
}

.btn-alert-success:hover {
    background: linear-gradient(135deg, #00a67f 0%, #008060 100%);
    box-shadow: 0 4px 12px rgba(0, 200, 150, 0.4);
    transform: translateY(-1px);
    color: white;
}

/* Responsive System Alerts */
@media (max-width: 768px) {
    .system-alerts-header {
        padding: 1rem;
    }
    
    .system-alerts-icon {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .system-alert-item {
        flex-wrap: wrap;
        padding: 0.9rem;
        gap: 0.75rem;
    }
    
    .alert-content {
        flex-basis: 100%;
        order: 2;
    }
    
    .alert-actions {
        flex-basis: 100%;
        order: 3;
    }
    
    .btn-alert-action {
        width: 100%;
        justify-content: center;
    }
    
    .alert-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ============================================
   Analytics & Charts Section - Tabbed Interface
   ============================================ */

/* Period Tabs */
.chart-period-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.period-tab {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    background: white;
    color: #6c757d;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.period-tab:hover {
    background: #f8f9fa;
    border-color: #00563F;
    color: #00563F;
}

.period-tab.active {
    background: #00563F;
    border-color: #00563F;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 86, 63, 0.2);
}

/* Metric Summary Cards */
.metric-summary-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.metric-summary-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.revenue-card .metric-icon {
    background: linear-gradient(135deg, #00c896 0%, #00a67f 100%);
    color: white;
}

.users-card .metric-icon {
    background: linear-gradient(135deg, #00563F 0%, #004030 100%);
    color: white;
}

.jobs-card .metric-icon {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
}

.applications-card .metric-icon {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.metric-content {
    flex: 1;
    min-width: 0;
}

.metric-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.metric-details {
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.4;
}

.metric-details small {
    display: block;
    margin-top: 0.125rem;
}

/* Chart Cards */
.chart-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chart-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.chart-header {
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.chart-header h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-header i {
    color: #00563F;
    font-size: 1rem;
}

.chart-body {
    padding: 1.25rem;
    position: relative;
    min-height: 200px;
}

.chart-body canvas {
    max-height: 300px;
}

/* Chart Empty State */
.chart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    color: #6c757d;
    min-height: 200px;
}

.chart-empty-state i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.chart-empty-state p {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Responsive Chart Section */
@media (max-width: 768px) {
    .chart-period-tabs {
        width: 100%;
        margin-top: 1rem;
    }
    
    .period-tab {
        flex: 1;
        text-align: center;
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }
    
    .metric-summary-card {
        padding: 0.75rem;
    }
    
    .metric-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .metric-value {
        font-size: 1.25rem;
    }
    
    .chart-body {
        padding: 1rem;
        min-height: 180px;
    }
    
    .chart-empty-state {
        padding: 2rem 1rem;
        min-height: 180px;
    }
    
    .chart-empty-state i {
        font-size: 2.5rem;
    }
}

/* ============================================
   Enhanced Conversion Metrics Cards
   ============================================ */

.conversion-metric-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.conversion-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00563F 0%, #00c896 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.conversion-metric-card.interactive {
    cursor: pointer;
}

.conversion-metric-card.interactive:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: #00563F;
}

.conversion-metric-card.interactive:hover::before {
    transform: scaleX(1);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.metric-icon.bg-primary {
    background: linear-gradient(135deg, #00563F 0%, #007a5a 100%);
}

.metric-icon.bg-success {
    background: linear-gradient(135deg, #00c896 0%, #00a67f 100%);
}

.metric-icon.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.metric-icon.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.metric-header .trend-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    white-space: nowrap;
}

.metric-header .trend-indicator.trend-up {
    background: rgba(0, 200, 150, 0.1);
    color: #00a67f;
}

.metric-header .trend-indicator.trend-down {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.metric-header .trend-indicator i {
    font-size: 0.7rem;
}

.metric-content {
    flex: 1;
}

.metric-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.metric-details {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.metric-progress {
    margin-bottom: 0.75rem;
}

.metric-progress .progress {
    border-radius: 2px;
    background: #e9ecef;
}

.metric-progress .progress-bar {
    border-radius: 2px;
    transition: width 0.6s ease;
}

.metric-insight {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.metric-insight.insight-success {
    background: rgba(0, 200, 150, 0.1);
    color: #00a67f;
}

.metric-insight.insight-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ff9800;
}

.metric-insight.insight-info {
    background: rgba(23, 162, 184, 0.1);
    color: #138496;
}

.metric-insight i {
    font-size: 0.875rem;
}

/* Responsive Conversion Metrics */
@media (max-width: 768px) {
    .conversion-metric-card {
        padding: 1rem;
    }
    
    .metric-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .metric-header .trend-indicator {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

/* ============================================
   Export Category Cards
   ============================================ */

.export-category-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.export-category-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.export-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.export-category-header i {
    font-size: 1.5rem;
    color: #00563F;
}

.export-category-header h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.export-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.export-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
}

.export-option:hover {
    background: #00563F;
    color: white;
    border-color: #00563F;
    transform: translateX(4px);
}

.export-option i {
    font-size: 1.25rem;
    color: inherit;
}

.export-option span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive Export Cards */
@media (max-width: 768px) {
    .export-category-card {
        padding: 1.25rem;
    }
    
    .export-option {
        padding: 0.625rem 0.875rem;
    }
}

/* ============================================
   Enhanced Activity Feed
   ============================================ */

.activity-filters {
    display: flex;
    gap: 0.5rem;
}

.activity-filters .filter-btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.activity-filters .filter-btn.active {
    background: #00563F;
    border-color: #00563F;
    color: white;
}

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-feed-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.activity-feed-item:hover {
    background: #e9ecef;
    border-left-color: #00563F;
    transform: translateX(4px);
}

.activity-feed-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.activity-feed-content {
    flex: 1;
    min-width: 0;
}

.activity-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.activity-feed-title {
    flex: 1;
    min-width: 0;
}

.activity-feed-title strong {
    color: #212529;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.25rem;
}

.activity-feed-actor {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: normal;
}

.activity-feed-time {
    color: #6c757d;
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.activity-feed-description {
    color: #495057;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.activity-feed-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.activity-feed-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #6c757d;
}

/* ============================================
   Enhanced Task Widget
   ============================================ */

.tasks-widget {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-widget-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #dee2e6;
    transition: all 0.2s ease;
}

.task-widget-item:hover {
    background: #e9ecef;
    transform: translateX(2px);
}

.task-widget-item.task-overdue {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.task-widget-item.task-overdue:hover {
    background: #ffe5e5;
}

.task-widget-header {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.task-widget-priority {
    flex-shrink: 0;
    font-size: 1.25rem;
}

.task-widget-content {
    flex: 1;
    min-width: 0;
}

.task-widget-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.task-widget-description {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

.task-widget-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.task-widget-meta {
    flex: 1;
}

.task-widget-due {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.task-widget-actions {
    flex-shrink: 0;
}

/* ============================================
   Enhanced Customer Widget
   ============================================ */

.customers-widget {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.customer-widget-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.customer-widget-card:hover {
    background: #e9ecef;
    border-color: #00563F;
    transform: translateX(2px);
}

.customer-widget-avatar {
    position: relative;
    flex-shrink: 0;
}

.customer-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.customer-avatar-initial,
.customer-avatar-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.customer-avatar-icon {
    font-size: 1.5rem;
}

.customer-new-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #00c896;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 200, 150, 0.3);
}

.customer-widget-content {
    flex: 1;
    min-width: 0;
}

.customer-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.customer-widget-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-widget-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    flex-shrink: 0;
}

.customer-widget-meta {
    margin-bottom: 0.75rem;
}

.customer-widget-time {
    font-size: 0.75rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.customer-widget-actions {
    margin-top: 0.5rem;
}

.customer-widget-actions .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .activity-filters {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .activity-filters .filter-btn {
        flex: 1;
    }
    
    .activity-feed-item {
        padding: 0.75rem;
    }
    
    .activity-feed-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .task-widget-item {
        padding: 0.75rem;
    }
    
    .customer-widget-card {
        padding: 0.75rem;
    }
    
    .customer-avatar-img,
    .customer-avatar-initial,
    .customer-avatar-icon {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .customer-avatar-icon {
        font-size: 1.25rem;
    }
}

/* Enhanced Filter Bar */
.stat-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.stat-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.stat-card-active {
    border: 2px solid var(--primary-color) !important;
    box-shadow: 0 4px 16px rgba(0, 86, 63, 0.2) !important;
    transform: translateY(-2px);
}

.stat-card-active .stat-card-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 86, 63, 0.3) !important;
}

.filter-bar-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.filter-bar-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-chip:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 86, 63, 0.2);
    text-decoration: none;
    color: white;
}

.filter-chip.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(0, 86, 63, 0.2);
}

.filter-chip i {
    font-size: 0.85rem;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.active-filters {
    padding: 0.75rem 1.25rem;
    background: #fff9e6;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.active-filters-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.active-filter-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.active-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: white;
    border: 1px solid rgba(0, 86, 63, 0.2);
    border-radius: 16px;
    font-size: 0.8rem;
    color: var(--text-dark);
    font-weight: 500;
}

.remove-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.7rem;
}

.remove-filter:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

.clear-all-filters {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.75rem;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 16px;
    font-size: 0.8rem;
    color: #dc3545;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.clear-all-filters:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
    text-decoration: none;
    color: white;
}

.filter-bar-advanced {
    padding: 1.25rem;
    background: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Responsive Filter Bar */
@media (max-width: 768px) {
    .filter-bar-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .filter-chips {
        width: 100%;
    }
    
    .filter-chip {
        font-size: 0.8rem;
        padding: 0.35rem 0.75rem;
    }
    
    .active-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .active-filter-badges {
        width: 100%;
    }
}

/* Enhanced Table Styling */
.table-enhanced {
    border-collapse: separate;
    border-spacing: 0;
}

.table-enhanced thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 2px solid rgba(0, 86, 63, 0.1);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    padding: 1rem 0.75rem;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
}

.table-enhanced thead th:first-child {
    border-top-left-radius: 8px;
}

.table-enhanced thead th:last-child {
    border-top-right-radius: 8px;
}

.table-enhanced tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-enhanced tbody tr:hover {
    background: linear-gradient(135deg, rgba(0, 86, 63, 0.02) 0%, rgba(0, 86, 63, 0.05) 100%);
    transform: scale(1.001);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

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

.table-row-enhanced {
    cursor: pointer;
}

.table-row-enhanced:hover td {
    background-color: transparent;
}

/* Sortable Headers */
.sortable {
    cursor: pointer;
    user-select: none;
}

.sort-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sort-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.sort-link i {
    font-size: 0.75rem;
    opacity: 0.6;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.sortable:hover .sort-link i {
    opacity: 1;
    color: var(--primary-color);
}

.sort-link i.bi-chevron-up,
.sort-link i.bi-chevron-down {
    opacity: 1;
    color: var(--primary-color);
}

/* Application Count Link */
.application-count-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.application-count-link:hover {
    background: rgba(0, 86, 63, 0.1);
    color: var(--primary-color);
    text-decoration: none;
    transform: scale(1.05);
}

/* Enhanced Dropdown Actions */
.dropdown-toggle {
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 0.35rem 0.6rem;
    transition: all 0.2s ease;
}

.dropdown-toggle:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.dropdown-toggle:hover i {
    color: white;
}

.dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.6rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: rgba(0, 86, 63, 0.1);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 18px;
    text-align: center;
}

.dropdown-item form {
    margin: 0;
    width: 100%;
}

.dropdown-item button {
    background: none;
    border: none;
    padding: 0;
    width: 100%;
    text-align: left;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-item button:hover {
    background: none;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: rgba(0, 0, 0, 0.08);
}

/* Email Link */
.table-enhanced tbody td a[href^="mailto:"] {
    color: var(--primary-color);
    transition: all 0.2s ease;
}

.table-enhanced tbody td a[href^="mailto:"]:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Avatar Enhancement */
.avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 86, 63, 0.1);
    transition: all 0.2s ease;
}

.table-row-enhanced:hover .avatar-sm {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 86, 63, 0.2);
}

/* Responsive Table */
@media (max-width: 768px) {
    /* Table Responsive Wrapper */
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: -ms-autohiding-scrollbar;
    }
    
    .table-enhanced thead th {
        font-size: 0.75rem;
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
    }
    
    .table-enhanced tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .sort-link {
        font-size: 0.75rem;
    }
    
    .dropdown-toggle {
        padding: 0.5rem 0.75rem;
        min-height: 44px;
    }
}

/* Enhanced Profile View */
.profile-header-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.profile-header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.profile-tabs-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.profile-tabs {
    border-bottom: 2px solid rgba(0, 86, 63, 0.1);
    padding: 0;
    margin: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.profile-tabs .nav-item {
    margin: 0;
}

.profile-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-tabs .nav-link:hover {
    background: rgba(0, 86, 63, 0.05);
    border-bottom-color: rgba(0, 86, 63, 0.3);
    color: var(--primary-color);
}

.profile-tabs .nav-link.active {
    background: white;
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.profile-tabs .nav-link .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
}

.profile-tab-content {
    padding: 1.5rem;
    min-height: 400px;
}

.profile-avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(0, 86, 63, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-avatar-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    border: 4px solid rgba(0, 86, 63, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    width: 24px;
    text-align: center;
    margin-top: 0.2rem;
}

.contact-info-item > div {
    flex: 1;
}

.contact-info-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info-item a,
.contact-info-item span {
    display: block;
    color: var(--text-dark);
    font-size: 0.95rem;
    text-decoration: none;
}

.contact-info-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Notes Section */
.notes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.note-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border-left: 3px solid var(--primary-color);
    transition: all 0.2s ease;
}

.note-item:hover {
    background: #f0f0f0;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.note-header {
    margin-bottom: 0.75rem;
}

.note-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.note-content {
    color: var(--text-dark);
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Enhanced Activity Timeline */
.activity-timeline-enhanced {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    padding-left: 2rem;
}

.activity-timeline-enhanced::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color) 0%, rgba(0, 86, 63, 0.2) 100%);
}

.activity-item-enhanced {
    display: flex;
    gap: 1rem;
    position: relative;
}

.activity-icon-enhanced {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    position: absolute;
    left: -2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.activity-content-enhanced {
    flex: 1;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-left: 2.5rem;
    transition: all 0.2s ease;
}

.activity-item-enhanced:hover .activity-content-enhanced {
    background: #f0f0f0;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.activity-title-enhanced {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.activity-description-enhanced {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.activity-meta-enhanced {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
}

/* Responsive Profile View */
@media (max-width: 768px) {
    .profile-header-card {
        padding: 1rem;
    }
    
    .profile-header-actions {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }
    
    .profile-header-actions .btn,
    .profile-header-actions .dropdown {
        width: 100%;
    }
    
    .profile-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .profile-tab-content {
        padding: 1rem;
    }
    
    .contact-info-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .activity-timeline-enhanced {
        padding-left: 1.5rem;
    }
    
    .activity-icon-enhanced {
        left: -1.5rem;
    }
    
    .activity-content-enhanced {
        margin-left: 2rem;
    }
}

/* ============================================
   Job Detail Page - Enhanced Modern Design
   ============================================ */

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-light);
}

/* Job Hero Header */
.job-hero-header {
    background: linear-gradient(135deg, rgba(0, 86, 63, 0.05) 0%, rgba(0, 86, 63, 0.02) 100%);
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid rgba(0, 86, 63, 0.1);
}

.job-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.job-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.job-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.job-badge-status {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.job-badge-type {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.job-badge-location {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.job-quick-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.quick-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.quick-stat-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.quick-stat-item .stat-label {
    color: var(--text-light);
    margin-right: 0.5rem;
}

.quick-stat-item .stat-value {
    font-weight: 600;
    color: var(--text-dark);
}

/* Job Content Cards */
.job-content-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.job-content-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.job-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 86, 63, 0.1);
}

.job-section-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.job-section-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.job-section-content {
    color: var(--text-dark);
    line-height: 1.8;
}

.job-section-content p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* Responsibilities List */
.job-responsibilities-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.job-responsibilities-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.job-responsibilities-list li:last-child {
    border-bottom: none;
}

.job-responsibilities-list li i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.job-responsibilities-list li span {
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Requirements List */
.job-requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.job-requirements-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.job-requirements-list li:last-child {
    border-bottom: none;
}

.job-requirements-list li i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.job-requirements-list li span {
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Job Sidebar */
.job-sidebar {
    position: sticky;
    top: 100px;
}

.job-sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.job-sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 86, 63, 0.1);
}

.job-sidebar-header h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-sidebar-header i {
    color: var(--primary-color);
}

/* Action Card */
.job-action-card {
    background: linear-gradient(135deg, rgba(0, 86, 63, 0.05) 0%, rgba(0, 86, 63, 0.02) 100%);
    border: 2px solid rgba(0, 86, 63, 0.1);
}

.job-apply-btn {
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 86, 63, 0.2);
}

.job-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 63, 0.3);
}

.job-action-secondary {
    display: flex;
    gap: 0.5rem;
}

.job-login-prompt {
    text-align: center;
}

.job-login-prompt h5 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.job-login-prompt p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Job Detail Items */
.job-detail-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 86, 63, 0.02);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.job-detail-item:hover {
    background: rgba(0, 86, 63, 0.05);
    transform: translateX(5px);
}

.detail-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.detail-icon-primary {
    background: linear-gradient(135deg, rgba(0, 86, 63, 0.1) 0%, rgba(0, 86, 63, 0.15) 100%);
    color: var(--primary-color);
}

.detail-icon-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.15) 100%);
    color: #28a745;
}

.detail-icon-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(23, 162, 184, 0.15) 100%);
    color: #17a2b8;
}

.detail-icon-secondary {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.1) 0%, rgba(108, 117, 125, 0.15) 100%);
    color: #6c757d;
}

.detail-icon-muted {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.05) 0%, rgba(108, 117, 125, 0.1) 100%);
    color: #6c757d;
}

.detail-icon-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.15) 100%);
    color: #ffc107;
}

.detail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.detail-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Family Info */
.job-family-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.family-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.family-name i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.family-contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-light);
    padding-left: 2rem;
}

.family-contact i {
    color: var(--text-light);
}

/* Share Buttons */
.job-share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Related Jobs Section */
.related-jobs-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(0, 86, 63, 0.1);
}

.related-jobs-section .section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.related-jobs-section .section-title i {
    color: var(--primary-color);
}

.job-card-related {
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    height: 100%;
}

.job-card-related:hover {
    border-left-width: 6px;
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.job-card-related .card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.job-card-related .card-title a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .job-sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .job-title {
        font-size: 2rem;
    }
    
    .job-quick-stats {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .job-hero-header {
        padding: 1.5rem;
    }
    
    .job-title {
        font-size: 1.75rem;
    }
    
    .job-badges {
        gap: 0.5rem;
    }
    
    .job-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .job-quick-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .job-content-card {
        padding: 1.5rem;
    }
    
    .job-section-header h3 {
        font-size: 1.25rem;
    }
    
    .job-share-buttons {
        grid-template-columns: 1fr;
    }
    
    .related-jobs-section {
        margin-top: 2rem;
        padding-top: 2rem;
    }
}

/* ============================================
   Blog Edit Form - Enhanced Design
   ============================================ */

/* Form Sections */
.form-section {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    background: rgba(0, 86, 63, 0.02);
    transition: all 0.3s ease;
}

.form-section:hover {
    background: rgba(0, 86, 63, 0.04);
    border-color: rgba(0, 86, 63, 0.2);
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 86, 63, 0.1);
}

.form-section-header i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.form-section-header h6 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.form-section-content {
    padding-top: 0.5rem;
}

.form-label i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Slug Preview */
.slug-preview {
    padding: 0.5rem;
    background: rgba(0, 86, 63, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.slug-preview a {
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.slug-preview a:hover {
    text-decoration: underline;
}

/* Sidebar Stat Items */
.stat-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(0, 86, 63, 0.02);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(0, 86, 63, 0.05);
    transform: translateX(3px);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.stat-icon-primary {
    background: linear-gradient(135deg, rgba(0, 86, 63, 0.1) 0%, rgba(0, 86, 63, 0.15) 100%);
    color: var(--primary-color);
}

.stat-icon-secondary {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.1) 0%, rgba(108, 117, 125, 0.15) 100%);
    color: #6c757d;
}

.stat-icon-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(23, 162, 184, 0.15) 100%);
    color: #17a2b8;
}

.stat-icon-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.15) 100%);
    color: #28a745;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-value-small {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Form Switch */
.form-check.form-switch {
    padding-left: 2.5rem;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .form-section {
        padding: 1rem;
    }
    
    .form-section-header h6 {
        font-size: 1rem;
    }
}

/* ============================================
   Blog Detail Page - Enhanced Design
   ============================================ */

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, #00a86b 100%);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(0, 86, 63, 0.5);
}

/* Hero Section */
.blog-hero-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 3rem;
}

.blog-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.blog-hero-placeholder {
    background: linear-gradient(135deg, var(--primary-color) 0%, #00a86b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-hero-placeholder::before {
    content: '\F4E4';
    font-family: 'bootstrap-icons';
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.2);
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 86, 63, 0.85) 0%, rgba(0, 86, 63, 0.7) 100%);
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
    color: white;
}

/* Enhanced Breadcrumb */
.breadcrumb-modern {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.breadcrumb-item-modern {
    display: flex;
    align-items: center;
}

.breadcrumb-item-modern:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-item-modern a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item-modern a:hover {
    color: white;
}

.breadcrumb-item-modern.active {
    color: rgba(255, 255, 255, 0.7);
}

/* Blog Badges */
.blog-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.blog-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.blog-badge-category {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.blog-badge-featured {
    background: rgba(255, 193, 7, 0.9);
    color: #000;
}

/* Blog Hero Title */
.blog-hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Metadata Cards */
.blog-metadata-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .blog-metadata-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

.metadata-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.metadata-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.metadata-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.metadata-content {
    flex: 1;
}

.metadata-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.25rem;
}

.metadata-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    line-height: 1.3;
}

.metadata-value small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.8;
}

/* Blog Hero Excerpt */
.blog-hero-excerpt {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin-top: 1rem;
}

/* Blog Content Section */
.blog-content-section {
    background: #f8f9fa;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.blog-post-content {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.blog-post-content:empty::before {
    content: 'Content coming soon...';
    display: block;
    color: var(--text-light);
    font-style: italic;
}

.blog-content {
    line-height: 1.9;
    font-size: 1.125rem;
    color: #333;
}

.blog-content p {
    margin-bottom: 1.75rem;
}

.blog-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 86, 63, 0.1);
}

.blog-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.blog-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.blog-content ul, .blog-content ol {
    margin-bottom: 1.75rem;
    padding-left: 2rem;
}

.blog-content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.blog-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    font-style: italic;
    color: #666;
    background: rgba(0, 86, 63, 0.05);
    border-radius: 0 8px 8px 0;
}

.blog-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.blog-content a:hover {
    color: #00a86b;
}

/* Share Section */
.blog-share-section {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 86, 63, 0.05) 0%, rgba(0, 86, 63, 0.02) 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 86, 63, 0.1);
}

.blog-share-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.blog-share-header h5 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.blog-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.share-btn-facebook {
    background: #1877f2;
    color: white;
}

.share-btn-facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
    color: white;
}

.share-btn-twitter {
    background: #1da1f2;
    color: white;
}

.share-btn-twitter:hover {
    background: #1a91da;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.4);
    color: white;
}

.share-btn-linkedin {
    background: #0077b5;
    color: white;
}

.share-btn-linkedin:hover {
    background: #006399;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.4);
    color: white;
}

.share-btn-whatsapp {
    background: #25d366;
    color: white;
}

.share-btn-whatsapp:hover {
    background: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    color: white;
}

.share-btn-email {
    background: #6c757d;
    color: white;
}

.share-btn-email:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
    color: white;
}

.share-btn-copy {
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
}

.share-btn-copy:hover {
    background: #00a86b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 63, 0.4);
    color: white;
}

/* Related Posts Section */
.related-posts-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(0, 86, 63, 0.1);
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.related-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.related-post-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.1);
}

.related-post-placeholder {
    background: linear-gradient(135deg, var(--primary-color) 0%, #00a86b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.related-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-post-card:hover .related-post-overlay {
    opacity: 1;
}

.related-post-content {
    padding: 1.5rem;
}

.related-post-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 86, 63, 0.1);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.related-post-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.related-post-content h4 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-post-content h4 a:hover {
    color: var(--primary-color);
}

.related-post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.related-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Sticky Sidebar */
.blog-sidebar-sticky {
    position: sticky;
    top: 100px;
}

.blog-sidebar-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.sidebar-card-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 86, 63, 0.05) 0%, rgba(0, 86, 63, 0.02) 100%);
    border-bottom: 1px solid rgba(0, 86, 63, 0.1);
}

.sidebar-card-header h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Table of Contents */
.toc-nav {
    max-height: 400px;
    overflow-y: auto;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 0.5rem;
}

.toc-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.toc-link:hover {
    background: rgba(0, 86, 63, 0.05);
    color: var(--primary-color);
    padding-left: 1rem;
}

.toc-link.active {
    background: rgba(0, 86, 63, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
}

.toc-level-2 {
    padding-left: 0;
}

.toc-level-3 {
    padding-left: 1.5rem;
    font-size: 0.85rem;
}

/* Recent Posts List */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-post-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-info {
    flex: 1;
}

.recent-post-info h6 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.recent-post-info h6 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.recent-post-info h6 a:hover {
    color: var(--primary-color);
}

/* Newsletter Card */
.blog-newsletter-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #00a86b 100%);
    color: white;
}

.blog-newsletter-card .sidebar-card-body {
    color: white;
}

.newsletter-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.blog-newsletter-card h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.blog-newsletter-card .text-muted {
    color: rgba(255, 255, 255, 0.9) !important;
}

.newsletter-form-sidebar .form-control {
    border: none;
    border-radius: 6px 0 0 6px;
}

.newsletter-form-sidebar .btn {
    border-radius: 0 6px 6px 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
}

.newsletter-form-sidebar .btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Floating Share Buttons */
.floating-share-buttons {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-share-buttons.visible {
    opacity: 1;
    visibility: visible;
}

.floating-share-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    background: white;
    padding: 0.5rem 0.25rem;
    border-radius: 8px 0 0 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.floating-share-btn {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.floating-share-facebook {
    background: #1877f2;
}

.floating-share-twitter {
    background: #1da1f2;
}

.floating-share-linkedin {
    background: #0077b5;
}

.floating-share-copy {
    background: var(--primary-color);
    border: none;
    cursor: pointer;
}

.floating-share-btn:hover {
    transform: translateX(-5px) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

/* Copy Toast */
.copy-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 86, 63, 0.4);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.copy-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .blog-hero-title {
        font-size: 2rem;
    }
    
    .blog-metadata-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-post-content {
        padding: 2rem;
    }
    
    .blog-sidebar-sticky {
        position: static;
    }
    
    .floating-share-buttons {
        display: none;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blog-hero-section {
        min-height: 400px;
    }
    
    .blog-hero-content {
        padding: 2rem 0;
    }
    
    .blog-metadata-cards {
        grid-template-columns: 1fr;
    }
    
    .blog-share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Modern Blog Detail Page - Professional Design
   ============================================ */

/* Modern Hero Section */
.blog-hero-modern {
    padding: 4rem 0 3rem;
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-list a:hover {
    color: #00a86b;
    text-decoration: underline;
}

.breadcrumb-list .separator {
    color: #adb5bd;
    margin: 0 0.25rem;
}

.blog-category-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.category-link {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 86, 63, 0.1);
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-link:hover {
    background: rgba(0, 86, 63, 0.15);
    color: var(--primary-color);
    text-decoration: none;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    background: #fff3cd;
    color: #856404;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

.blog-title-modern {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: #212529;
    margin: 1.5rem 0;
    letter-spacing: -0.02em;
}

.blog-meta-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item i {
    font-size: 1rem;
    color: var(--primary-color);
}

.meta-separator {
    color: #dee2e6;
    font-weight: 300;
}

.blog-excerpt-modern {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #495057;
    margin-top: 1.5rem;
    font-weight: 400;
}

/* Featured Image Section */
.blog-featured-image-section {
    padding: 2rem 0;
    background: #f8f9fa;
}

.blog-featured-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.blog-featured-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Section */
.blog-content-section-modern {
    padding: 3rem 0;
    background: #ffffff;
}

.blog-article-modern {
    background: #ffffff;
}

.blog-content-modern {
    font-size: 1.125rem;
    line-height: 1.9;
    color: #212529;
    max-width: 100%;
}

.blog-content-modern p {
    margin-bottom: 1.75rem;
    font-weight: 400;
}

.blog-content-modern h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.blog-content-modern h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.blog-content-modern h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content-modern img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2.5rem 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.blog-content-modern ul,
.blog-content-modern ol {
    margin-bottom: 1.75rem;
    padding-left: 2rem;
}

.blog-content-modern li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.blog-content-modern blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    font-style: italic;
    color: #495057;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
}

.blog-content-modern a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.blog-content-modern a:hover {
    color: #00a86b;
}

/* Share Section */
.blog-share-modern {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.share-label {
    font-weight: 600;
    color: #212529;
    font-size: 0.95rem;
}

.share-buttons-modern {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-btn-modern {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.share-fb { background: #1877f2; }
.share-tw { background: #1da1f2; }
.share-li { background: #0077b5; }
.share-wa { background: #25d366; }
.share-copy { background: var(--primary-color); }

.share-btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

/* Related Posts */
.related-posts-modern {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e9ecef;
}

.related-posts-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 2rem;
}

.related-posts-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.related-post-modern {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.related-post-modern:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 86, 63, 0.1);
    transform: translateY(-2px);
}

.related-post-image-modern {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.related-post-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-modern:hover .related-post-image-modern img {
    transform: scale(1.05);
}

.related-post-body-modern {
    padding: 1.5rem;
}

.related-post-category-modern {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 86, 63, 0.1);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.related-post-title-modern {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.related-post-title-modern a {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-post-title-modern a:hover {
    color: var(--primary-color);
}

.related-post-meta-modern {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Sidebar */
.blog-sidebar-modern {
    position: sticky;
    top: 100px;
}

.sidebar-widget-modern {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.widget-title-modern {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f8f9fa;
}

/* Table of Contents */
.toc-modern {
    max-height: 400px;
    overflow-y: auto;
}

.toc-list-modern {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item-modern {
    margin-bottom: 0.5rem;
}

.toc-link-modern {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #495057;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.toc-link-modern:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    padding-left: 1rem;
}

.toc-link-modern.active {
    background: rgba(0, 86, 63, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
}

.toc-level-3 {
    padding-left: 1.5rem;
    font-size: 0.85rem;
}

/* Recent Posts */
.recent-posts-modern-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.recent-post-modern-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f8f9fa;
}

.recent-post-modern-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-thumb-modern {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    display: block;
}

.recent-post-thumb-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-post-thumb-modern:hover img {
    transform: scale(1.1);
}

.recent-post-content-modern {
    flex: 1;
}

.recent-post-title-modern {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.recent-post-title-modern a {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s ease;
}

.recent-post-title-modern a:hover {
    color: var(--primary-color);
}

.recent-post-date-modern {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Newsletter */
.sidebar-newsletter-modern {
    background: linear-gradient(135deg, var(--primary-color) 0%, #00a86b 100%);
    border: none;
    color: white;
}

.newsletter-content-modern {
    text-align: center;
}

.newsletter-content-modern i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.newsletter-content-modern h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.newsletter-content-modern p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.input-group-modern {
    display: flex;
    gap: 0.5rem;
}

.form-control-modern {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
}

.form-control-modern:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.btn-newsletter-modern {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-newsletter-modern:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Back Button */
.btn-back-modern {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-back-modern:hover {
    background: #00a86b;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 86, 63, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .blog-title-modern {
        font-size: 2.25rem;
    }
    
    .blog-sidebar-modern {
        position: static;
        margin-top: 3rem;
    }
    
    .related-posts-grid-modern {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blog-hero-modern {
        padding: 2rem 0 1.5rem;
    }
    
    .blog-title-modern {
        font-size: 1.75rem;
    }
    
    .blog-meta-modern {
        font-size: 0.85rem;
        gap: 0.75rem;
    }
    
    .blog-excerpt-modern {
        font-size: 1.1rem;
    }
    
    .blog-content-modern {
        font-size: 1rem;
    }
    
    .blog-share-modern {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .share-buttons-modern {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ============================================
   Modern Course Detail Page - Professional Design
   ============================================ */

/* Course Hero Section */
.course-hero-modern {
    padding: 3rem 0 2rem;
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
}

.course-breadcrumb-modern {
    margin-bottom: 2rem;
}

.course-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.course-badge-free {
    background: #d4edda;
    color: #155724;
}

.course-title-modern {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    color: #212529;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.course-description-modern {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 2rem;
}

/* Course Meta Cards */
.course-meta-cards-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.course-meta-card-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.course-meta-card-modern:hover {
    background: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 86, 63, 0.1);
    transform: translateY(-2px);
}

.meta-icon-modern {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 86, 63, 0.1) 0%, rgba(0, 86, 63, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.meta-content-modern {
    flex: 1;
}

.meta-label-modern {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.meta-value-modern {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
}

/* Course Image */
.course-image-wrapper-modern {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
}

.course-image-modern {
    width: 100%;
    height: auto;
    display: block;
}

.course-image-placeholder-modern {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #00a86b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

/* Course Content Section */
.course-content-section-modern {
    padding: 3rem 0;
    background: #f8f9fa;
}

.section-title-modern {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title-modern i {
    color: var(--primary-color);
}

/* Course Highlights */
.course-highlights-modern {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.highlights-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.highlight-item-modern {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.highlight-item-modern:hover {
    background: rgba(0, 86, 63, 0.05);
    transform: translateX(5px);
}

.highlight-item-modern i {
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.highlight-item-modern span {
    color: #495057;
    line-height: 1.5;
}

/* Course Curriculum */
.course-curriculum-modern {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.curriculum-empty-modern {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.curriculum-empty-modern i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.curriculum-modules-modern {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.module-card-modern {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
}

.module-card-modern:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 86, 63, 0.1);
}

.module-header-modern {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background 0.2s ease;
}

.module-header-modern:hover {
    background: #f8f9fa;
}

.module-info-modern {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.module-number-modern {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #00a86b 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.module-content-modern {
    flex: 1;
}

.module-title-modern {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.module-description-modern {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

.module-meta-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.module-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #495057;
    font-weight: 500;
}

.module-toggle-modern {
    font-size: 1.25rem;
    color: #6c757d;
    transition: transform 0.3s ease;
}

.module-header-modern[aria-expanded="true"] .module-toggle-modern {
    transform: rotate(180deg);
}

.module-lessons-modern {
    padding: 0 1.5rem 1.5rem;
    background: #f8f9fa;
}

.lessons-empty-modern {
    padding: 2rem;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.lesson-item-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.lesson-item-modern:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 86, 63, 0.1);
    transform: translateX(5px);
}

.lesson-item-modern:last-child {
    margin-bottom: 0;
}

.lesson-icon-modern {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(0, 86, 63, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.lesson-content-modern {
    flex: 1;
}

.lesson-title-modern {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.lesson-duration-modern {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lesson-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: #d4edda;
    color: #155724;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Course Sidebar */
.course-sidebar-modern {
    position: sticky;
    top: 100px;
}

/* Enrollment Card */
.enrollment-card-modern {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.enrollment-price-modern {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #00a86b 100%);
    color: white;
    text-align: center;
}

.price-free-modern,
.price-paid-modern {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-label-modern {
    font-size: 0.875rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value-modern {
    font-size: 2rem;
    font-weight: 800;
}

.enrollment-actions-modern {
    padding: 1.5rem;
}

.btn-enroll-modern {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-enroll-free {
    background: linear-gradient(135deg, var(--primary-color) 0%, #00a86b 100%);
    color: white;
}

.btn-enroll-paid {
    background: linear-gradient(135deg, var(--primary-color) 0%, #00a86b 100%);
    color: white;
}

.btn-enroll-continue {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-enroll-login {
    background: #6c757d;
    color: white;
}

.btn-enroll-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 86, 63, 0.3);
    color: white;
    text-decoration: none;
}

.enrollment-note-modern {
    text-align: center;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 1rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.enrollment-note-free {
    color: #155724;
}

/* Progress Section */
.progress-section-modern {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.progress-label-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #212529;
}

.progress-percent-modern {
    color: var(--primary-color);
}

.progress-bar-modern {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill-modern {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, #00a86b 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Course Includes */
.course-includes-modern {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.includes-title-modern {
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
}

.includes-list-modern {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.includes-list-modern li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #495057;
}

.includes-list-modern li i {
    color: var(--primary-color);
    font-size: 1rem;
    flex-shrink: 0;
}

/* Course Info Card */
.course-info-card-modern {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.info-card-title-modern {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f8f9fa;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card-title-modern i {
    color: var(--primary-color);
}

.info-items-modern {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item-modern {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.info-item-modern:hover {
    background: rgba(0, 86, 63, 0.05);
}

.info-item-modern i {
    font-size: 1.25rem;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.info-label-modern {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.info-value-modern {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
}

/* Responsive Design */
@media (max-width: 992px) {
    .course-title-modern {
        font-size: 2rem;
    }
    
    .course-sidebar-modern {
        position: static;
        margin-top: 3rem;
    }
    
    .course-meta-cards-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .course-hero-modern {
        padding: 2rem 0 1.5rem;
    }
    
    .course-title-modern {
        font-size: 1.75rem;
    }
    
    .course-description-modern {
        font-size: 1rem;
    }
    
    .course-meta-cards-modern {
        grid-template-columns: 1fr;
    }
    
    .highlights-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .course-highlights-modern,
    .course-curriculum-modern {
        padding: 1.5rem;
    }
}

/* ============================================
   Modern Course Edit Form - Professional Design
   ============================================ */

/* Course Edit Card */
.course-edit-card-modern {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

/* Section Header */
.course-edit-header-modern {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #00a86b 100%);
    color: white;
}

.section-icon-modern {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.section-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.section-subtitle-modern {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Form Body */
.course-edit-body-modern {
    padding: 2rem;
}

/* Form Sections */
.form-section-modern {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.form-section-modern:last-of-type {
    border-bottom: none;
    margin-bottom: 1.5rem;
}

.form-section-header-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f8f9fa;
}

.form-section-header-modern i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Form Groups */
.form-group-modern {
    margin-bottom: 1.5rem;
}

.form-label-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.form-label-modern i {
    color: var(--primary-color);
    font-size: 1rem;
}

.required-badge-modern {
    color: #dc3545;
    font-weight: 700;
}

/* Input Groups */
.input-group-modern {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-modern {
    position: absolute;
    left: 1rem;
    color: #6c757d;
    font-size: 1.1rem;
    z-index: 1;
    pointer-events: none;
}

.form-control-modern {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: white;
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 63, 0.1);
}

.form-control-modern::placeholder {
    color: #adb5bd;
}

/* Textarea Wrapper */
.textarea-wrapper-modern {
    position: relative;
}

.textarea-wrapper-modern .form-control-modern {
    padding: 0.75rem 1rem;
    padding-bottom: 2.5rem;
    resize: vertical;
    min-height: 120px;
}

.char-counter-modern {
    position: absolute;
    bottom: 0.75rem;
    right: 1rem;
    font-size: 0.8rem;
    color: #6c757d;
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.char-counter-modern.text-warning {
    color: #ffc107;
    font-weight: 600;
}

/* Form Help Text */
.form-help-modern {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
    line-height: 1.5;
}

.form-help-modern i {
    color: var(--primary-color);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* Free Badge */
.free-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #d4edda;
    color: #155724;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.75rem;
}

.free-badge-modern i {
    color: #28a745;
}

/* Thumbnail Upload */
.thumbnail-upload-modern {
    margin-top: 1rem;
}

.thumbnail-preview-modern {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
    align-items: center;
}

.thumbnail-image-wrapper-modern {
    position: relative;
    flex-shrink: 0;
}

.thumbnail-image-wrapper-modern img {
    width: 200px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.thumbnail-remove-modern {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.thumbnail-remove-modern:hover {
    background: #c82333;
    transform: scale(1.1);
}

.thumbnail-info-modern {
    flex: 1;
}

.thumbnail-name-modern {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.75rem;
    word-break: break-word;
}

.thumbnail-actions-modern {
    display: flex;
    gap: 0.75rem;
}

.btn-thumbnail-replace-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

.btn-thumbnail-replace-modern:hover {
    background: #00a86b;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 86, 63, 0.2);
}

/* Thumbnail Dropzone */
.thumbnail-upload-area-modern {
    margin-top: 1rem;
}

.thumbnail-dropzone-modern {
    display: block;
    padding: 3rem 2rem;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.thumbnail-dropzone-modern:hover {
    border-color: var(--primary-color);
    background: rgba(0, 86, 63, 0.05);
}

.dropzone-content-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.dropzone-content-modern i {
    font-size: 3rem;
    color: var(--primary-color);
}

.dropzone-text-modern {
    font-size: 1rem;
    color: #495057;
}

.dropzone-text-modern strong {
    color: var(--primary-color);
}

.dropzone-hint-modern {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Status Select */
.status-select-modern {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-select-modern {
    flex: 1;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
}

.form-select-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 63, 0.1);
}

.status-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
}

.status-draft-modern {
    background: #e9ecef;
    color: #495057;
}

.status-published-modern {
    background: #d4edda;
    color: #155724;
}

.status-published-modern i {
    color: #28a745;
}

/* Form Actions */
.form-actions-modern {
    display: flex;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
    margin-top: 2rem;
}

.btn-submit-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #00a86b 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-submit-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 86, 63, 0.3);
}

.btn-cancel-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: #6c757d;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-cancel-modern:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .course-edit-header-modern {
        padding: 1.25rem 1.5rem;
    }
    
    .course-edit-body-modern {
        padding: 1.5rem;
    }
    
    .section-title-modern {
        font-size: 1.25rem;
    }
    
    .thumbnail-preview-modern {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .thumbnail-image-wrapper-modern img {
        width: 100%;
        max-width: 300px;
    }
    
    .form-actions-modern {
        flex-direction: column;
    }
    
    .btn-submit-modern,
    .btn-cancel-modern {
        width: 100%;
        justify-content: center;
    }
    
    .status-select-modern {
        flex-direction: column;
        align-items: stretch;
    }
    
    .status-badge-modern {
        width: 100%;
        justify-content: center;
    }
}

/* Priority toggle group */
.priority-toggle-group .priority-toggle {
    border: 1.5px solid #d2d7dc;
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    font-weight: 600;
    color: #1f2933;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.priority-toggle-group .priority-toggle:hover {
    border-color: #00563F;
    color: #00563F;
}

.priority-toggle-group .btn-check:checked + .priority-toggle {
    background-color: #00563F;
    color: #ffffff;
    border-color: #00563F;
    box-shadow: 0 0.35rem 0.75rem rgba(0, 86, 63, 0.15);
}

.priority-toggle-group .btn-check:focus + .priority-toggle {
    box-shadow: 0 0 0 0.25rem rgba(0, 86, 63, 0.2);
}
/* Activity analytics */
.analytics-card {
    border: none;
    border-radius: 16px;
}

.analytics-card canvas {
    width: 100%;
}

.legend-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    background: #ffffff;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    border: 1px solid #e9ecef;
}

/* Activity grid */
.activity-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.activity-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
}

.activity-grid .activity-card {
    display: flex;
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 400px;
}

.activity-card-inner {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #edf1f7;
    padding: 1.25rem;
    display: flex;
    gap: 1.25rem;
    width: 100%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    align-items: flex-start;
}

.activity-card-inner:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.activity-card-inner .activity-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    max-width: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
    flex-grow: 0;
    margin: 0;
    margin-right: 1.25rem;
    padding: 0;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.activity-card-inner .activity-details {
    flex: 1 1 auto;
    min-width: 0; /* Allows flex item to shrink */
    width: auto;
    max-width: none; /* Let flexbox handle the width */
    overflow: visible; /* Allow text to wrap naturally */
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.activity-details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.activity-details-header h6 {
    font-weight: 600;
    color: #1f2933;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
    max-width: 100%;
}

.activity-title-wrapper {
    flex: 1;
    min-width: 0; /* Allows flex item to shrink below content size */
}

.activity-time-badge {
    flex-shrink: 0; /* Prevent time badge from shrinking */
    white-space: nowrap;
}

.activity-description {
    color: #4a5568;
    font-size: 0.95rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.activity-meta .badge {
    margin-right: 0.5rem;
}

.activity-session-wrapper {
    width: 100%;
    margin-bottom: 0.5rem;
}

.activity-date-wrapper {
    width: 100%;
    margin: 1.5rem 0 1rem;
}

@media (max-width: 992px) {
    .activity-grid .activity-card {
        flex: 1 1 100%;
        min-width: 100%;
    }
}
/* Newsletter subscribers */
.avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.table-enhanced .status-active {
    background-color: #e6f4ea;
    color: #1a7c3e;
}

.table-enhanced .status-unsubscribed {
    background-color: #f4e7ea;
    color: #a61b3d;
}
.table-enhanced .status-active {
    background-color: #e6f4ea;
    color: #1a7c3e;
}

.table-enhanced .status-suspended {
    background-color: #fff4e6;
    color: #d97706;
}

.table-enhanced .status-inactive {
    background-color: #f0f1f5;
    color: #4b5563;
}
/* Admin edit page */
.role-toggle-group .role-toggle {
    border: 1.5px solid #d2d7dc;
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    font-weight: 600;
    color: #1f2933;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.role-toggle-group .role-toggle:hover {
    border-color: #00563F;
    color: #00563F;
}

.role-toggle-group .btn-check:checked + .role-toggle {
    background-color: #00563F;
    color: #ffffff;
    border-color: #00563F;
    box-shadow: 0 0.35rem 0.75rem rgba(0, 86, 63, 0.15);
}

.permission-chip {
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #1f2933;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.permission-chip input {
    display: none;
}

.permission-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #edf2f7;
    color: #64748b;
    font-size: 0.85rem;
}

.permission-chip.active,
.permission-chip input:checked + span,
.permission-chip:hover {
    border-color: #00563F;
    color: #00563F;
}

.permission-chip input:checked + span {
    background: #00563F;
    color: #fff;
}
/* Admin edit page */
.info-card .detail-pill {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
}

.section-heading {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
}

.role-toggle-group .role-toggle {
    border: 1.5px solid #d2d7dc;
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    font-weight: 600;
    color: #1f2933;
    background-color: #fff;
}

.role-toggle-group .btn-check:checked + .role-toggle {
    background-color: #00563F;
    color: #fff;
    border-color: #00563F;
}

.permission-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1.5px solid #d2d7dc;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.permission-chip input { display:none; }

.permission-chip span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #d2d7dc;
    color: #fff;
    font-size: 0.85rem;
}

.permission-chip.active {
    border-color: #00563F;
    color: #00563F;
    box-shadow: 0 0.35rem 0.75rem rgba(0,86,63,0.12);
}

.permission-chip.active span {
    background: #00563F;
}

.mini-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mini-timeline li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.mini-timeline .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
/* Settings page */
.settings-form .card-header-modern {
    background: transparent;
    border-bottom: 1px solid #edf1f7;
}

.logo-preview-card {
    border: 1px solid #edf1f7;
    border-radius: 12px;
    overflow: hidden;
}

.logo-preview-header {
    background: #f8f9fa;
    padding: 0.6rem 0.75rem;
    font-weight: 600;
}

.logo-preview-body {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.logo-preview-footer {
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    font-size: 0.85rem;
}

.social-card {
    border: 1.5px solid #edf1f7;
    border-radius: 12px;
    padding: 0.75rem;
    background: #ffffff;
}

.settings-action-bar {
    position: sticky;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    padding: 1rem 0;
}
/* Family dashboard refresh */
.hero-strip {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
    background: #ffffff;
    border-radius: 18px;
    padding: 1.75rem 2rem;
    box-shadow: 0 15px 40px rgba(0, 86, 63, 0.08);
    border: 1px solid rgba(0, 86, 63, 0.12);
}

.hero-strip h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.hero-strip p {
    color: #5b6773;
    margin: 0;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-subscription {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero-plan {
    background: rgba(0, 86, 63, 0.08);
    color: #00563F;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
}

.hero-subtext {
    font-size: 0.9rem;
    color: #6b7680;
}

.hero-cta {
    border-radius: 999px;
    padding: 0.65rem 1.4rem;
    font-weight: 600;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.metric-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.35rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 12px 30px rgba(50, 71, 92, 0.05);
}

.metric-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #ffffff;
}

.metric-value {
    font-size: 1.65rem;
    font-weight: 700;
    color: #142033;
    line-height: 1;
}

.metric-label {
    font-weight: 600;
    color: #4b5763;
    margin-top: 0.3rem;
}

.metric-helper {
    font-size: 0.85rem;
    color: #8a94a0;
    margin-top: 0.25rem;
}

.metric-card-primary .metric-icon { background: linear-gradient(135deg, #00563F, #007f5f); }
.metric-card-info .metric-icon { background: linear-gradient(135deg, #06bcee, #1d4ed8); }
.metric-card-success .metric-icon { background: linear-gradient(135deg, #22c55e, #0f9d58); }
.metric-card-warning .metric-icon { background: linear-gradient(135deg, #fbbf24, #e87918); }

.subscription-banner {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.4fr) auto;
    gap: 1.5rem;
    align-items: center;
    background: #ffffff;
    border-radius: 18px;
    padding: 1.5rem 1.75rem;
    border: 1px solid rgba(0, 86, 63, 0.12);
    box-shadow: 0 18px 38px rgba(0, 86, 63, 0.08);
}

.subscription-banner.is-empty {
    border: 1.5px dashed rgba(0, 86, 63, 0.25);
    box-shadow: none;
}

.subscription-main {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.subscription-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(0, 86, 63, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00563F;
    font-size: 1.4rem;
}

.subscription-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: #142033;
}

.subscription-meta {
    font-size: 0.92rem;
    color: #637080;
}

.subscription-usage {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.usage-pill {
    background: rgba(20, 32, 51, 0.05);
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    min-width: 140px;
}

.usage-pill .label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6b7680;
    letter-spacing: 0.04em;
}

.usage-pill .value {
    font-weight: 700;
    font-size: 1rem;
    color: #142033;
}

.subscription-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.status-chip {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.quick-shortcut-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 12px 28px rgba(50, 71, 92, 0.06);
    padding: 1.25rem 1.5rem 1.75rem;
}

.quick-shortcut-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
}

.quick-shortcut-header h5 {
    font-weight: 700;
    color: #142033;
}

.quick-shortcut-hint {
    font-size: 0.85rem;
    color: #8a94a0;
}

.quick-shortcut-strip {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}

.quick-shortcut-strip::-webkit-scrollbar {
    height: 6px;
}

.quick-shortcut-strip::-webkit-scrollbar-thumb {
    background: rgba(20, 32, 51, 0.15);
    border-radius: 999px;
}

.shortcut-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1.1rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid transparent;
    min-width: 220px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.shortcut-pill:hover {
    background: #ffffff;
    border-color: rgba(0, 86, 63, 0.2);
    box-shadow: 0 10px 24px rgba(0, 86, 63, 0.12);
}

.shortcut-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.shortcut-text .title {
    font-weight: 600;
    color: #142033;
}

.shortcut-text .subtitle {
    display: block;
    font-size: 0.82rem;
    color: #8a94a0;
}

.insight-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 86, 63, 0.12), rgba(0, 86, 63, 0.06));
    border: 1px solid rgba(0, 86, 63, 0.18);
}

.insight-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff;
    color: #00563F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.insight-title {
    font-weight: 700;
    color: #142033;
}

.insight-text {
    color: #4b5763;
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .subscription-banner {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }
    .subscription-actions {
        align-items: flex-start;
    }
    .hero-strip {
        padding: 1.25rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-strip h1 {
        font-size: 1.45rem;
    }
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    .shortcut-pill {
        min-width: 180px;
    }
}
/* Family job post guided experience */
.job-post-page .job-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.5fr);
    gap: 2rem;
    background: #ffffff;
    border-radius: 24px;
    padding: 2.25rem 2.5rem;
    border: 1px solid rgba(0, 86, 63, 0.12);
    box-shadow: 0 22px 45px rgba(0, 86, 63, 0.09);
}

.job-hero-copy h1 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #142033;
}

.job-hero-copy p {
    font-size: 0.98rem;
    color: #515e6b;
    margin-bottom: 0;
}

.job-hero-badge {
    background: rgba(0, 86, 63, 0.1) !important;
    color: #00563F !important;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.job-hero-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    align-content: start;
}

.hero-meta-item {
    border: 1px solid rgba(20, 32, 51, 0.08);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    background: #f9fbfa;
}

.hero-meta-item .label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #76808c;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
}

.hero-meta-item .value {
    display: block;
    font-weight: 700;
    color: #142033;
    font-size: 1.1rem;
}

.hero-meta-item .sub {
    color: #667181;
    font-size: 0.8rem;
}

.hero-meta-item .link-view {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: #00563F;
    font-weight: 600;
}

.job-form-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.06);
}

.form-section + .form-section {
    margin-top: 2.25rem;
}

.form-section-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.step-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(0, 86, 63, 0.1);
    color: #00563F;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.form-section-header h5 {
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.form-section-header p {
    margin-bottom: 0;
    color: #5a6674;
}

.template-helper select {
    min-width: 220px;
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.chip-group .chip {
    border: 1.5px solid rgba(0, 86, 63, 0.25);
    background: #ffffff;
    color: #00563F;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.chip-group .chip:hover {
    background: #00563F;
    color: #ffffff;
    box-shadow: 0 12px 20px rgba(0, 86, 63, 0.18);
}

.job-sticky-wrap {
    position: sticky;
    top: 98px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.progress-card,
.job-preview-card,
.job-action-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(229, 231, 235, 0.85);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
    padding: 1.5rem 1.75rem;
}

.progress-card .progress-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.progress-card h6 {
    font-weight: 700;
    color: #142033;
}

.progress-percentage {
    font-weight: 700;
    color: #00563F;
    font-size: 1.1rem;
}

.progress-sm {
    height: 8px;
    background: rgba(15, 23, 42, 0.08);
    border-radius: 999px;
}

.progress-sm .progress-bar {
    background: linear-gradient(135deg, #00563F, #0f9d58);
    border-radius: 999px;
}

.quality-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.quality-checklist li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #5a6674;
    font-size: 0.9rem;
}

.quality-checklist li i {
    font-size: 1rem;
    color: #a8b0b9;
    transition: color 0.2s ease;
}

.quality-checklist li.is-complete {
    color: #0f9d58;
    font-weight: 600;
}

.quality-checklist li.is-complete i {
    color: #0f9d58;
}

.job-preview-card .preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.preview-body h5 {
    font-weight: 700;
    color: #142033;
    margin-bottom: 0.75rem;
}

.preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    color: #5a6674;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.preview-divider {
    height: 1px;
    background: rgba(15, 23, 42, 0.1);
    margin: 1.25rem 0 1rem;
}

.job-action-card .btn-primary {
    background: #00563F;
    border-color: #00563F;
    font-weight: 600;
}

.job-action-card .btn-primary:hover {
    background: #024f39;
    border-color: #024f39;
}

.job-action-card .btn-outline-secondary {
    border-radius: 999px;
    font-weight: 600;
}

.job-action-card .btn-primary,
.job-action-card .btn-outline-secondary {
    border-radius: 999px;
    padding: 0.65rem 1.05rem;
}

.job-action-card .btn-link {
    font-weight: 600;
    color: #77808d;
}

@media (max-width: 1200px) {
    .job-post-page .job-hero-card {
        grid-template-columns: 1fr;
    }

    .job-sticky-wrap {
        position: static;
    }
}

@media (max-width: 768px) {
    .job-form-card {
        padding: 1.5rem;
    }

    .job-hero-copy h1 {
        font-size: 1.6rem;
    }

    .template-helper select {
        min-width: 180px;
    }
}

@media (max-width: 576px) {
    .job-post-page .job-hero-card {
        padding: 1.5rem;
    }

    .hero-meta-item {
        padding: 0.85rem 0.95rem;
    }
}
/* Family subscription page */
.subscription-page .subscription-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
    gap: 2rem;
    background: linear-gradient(135deg, #00563F, #0f8d68);
    color: #ffffff;
    border-radius: 24px;
    padding: 2.25rem 2.5rem;
    box-shadow: 0 24px 48px rgba(0, 86, 63, 0.25);
    margin-bottom: 1.75rem;
}

.subscription-page .hero-plan-label {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.subscription-page .subscription-hero-card h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.subscription-page .hero-status {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1.25rem;
}

.subscription-page .hero-actions .btn {
    border-radius: 999px;
    padding: 0.55rem 1.2rem;
    font-weight: 600;
}

.subscription-page .hero-actions .btn-outline-light {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
}

.subscription-page .hero-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.18);
}

.subscription-page .hero-actions .btn-light {
    color: #00563F;
}

.subscription-page .price-display {
    display: flex;
    align-items: flex-end;
    gap: 0.25rem;
    font-weight: 700;
}

.subscription-page .price-display .currency {
    font-size: 1.4rem;
    opacity: 0.8;
}

.subscription-page .price-display .amount {
    font-size: 2.6rem;
    line-height: 1;
}

.subscription-page .price-display .term {
    font-size: 0.9rem;
    opacity: 0.75;
    margin-bottom: 0.25rem;
}

.subscription-page .billing-meta {
    margin-top: 1.2rem;
    display: grid;
    gap: 0.35rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.subscription-page .usage-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.subscription-page .usage-item {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.25rem 1.35rem;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.05);
}

.subscription-page .usage-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-weight: 700;
    color: #142033;
    margin-bottom: 0.75rem;
}

.subscription-page .usage-caption {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7583;
}

.subscription-page .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.subscription-page .status-pill.status-success {
    background: rgba(34, 197, 94, 0.16);
    color: #15803d;
}

.subscription-page .status-pill.status-pending {
    background: rgba(234, 179, 8, 0.16);
    color: #a16207;
}

.subscription-page .feature-matrix-card {
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
    padding: 2rem;
}

.subscription-page .feature-matrix-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.subscription-page .feature-matrix-header h5 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.subscription-page .feature-matrix-header p {
    margin-bottom: 0;
    color: #626d7c;
    font-size: 0.9rem;
}

.subscription-page .feature-matrix-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.subscription-page .feature-cluster {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.25rem 1.35rem;
    border: 1px solid rgba(229, 231, 235, 0.7);
}

.subscription-page .cluster-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 86, 63, 0.12);
    color: #00563F;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.subscription-page .cluster-title {
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #1f2937;
}

.subscription-page .feature-cluster ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #4f5a67;
}

.subscription-page .feature-cluster li i {
    color: #22c55e;
    margin-right: 0.45rem;
}

.subscription-page .empty-benefits {
    text-align: center;
    color: #768293;
    padding: 2rem 1rem;
}

.subscription-page .empty-benefits i {
    font-size: 2rem;
    color: #00563F;
    margin-bottom: 0.5rem;
}

.subscription-page .lifecycle-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(229, 231, 235, 0.85);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
    padding: 1.75rem;
}

.subscription-page .lifecycle-timeline {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: grid;
    gap: 1.1rem;
}

.subscription-page .lifecycle-timeline li {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.subscription-page .lifecycle-timeline .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    margin-top: 0.3rem;
}

.subscription-page .lifecycle-timeline .dot.is-complete {
    background: #22c55e;
}

.subscription-page .lifecycle-timeline .dot.is-active {
    background: #00563F;
    box-shadow: 0 0 0 4px rgba(0, 86, 63, 0.15);
}

.subscription-page .lifecycle-actions .btn {
    border-radius: 12px;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.subscription-page .empty-subscription-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px dashed rgba(0, 86, 63, 0.35);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 86, 63, 0.08);
}

.subscription-page .empty-subscription-card .empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background: rgba(0, 86, 63, 0.12);
    color: #00563F;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.subscription-page .empty-subscription-card h2 {
    font-weight: 700;
    font-size: 1.7rem;
    margin-bottom: 0.6rem;
    color: #142033;
}

.subscription-page .empty-subscription-card p {
    color: #5d6979;
    max-width: 520px;
    margin: 0 auto 1.5rem;
}

.subscription-page .table-card {
    border-radius: 20px;
}

@media (max-width: 992px) {
    .subscription-page .subscription-hero-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .subscription-page .hero-actions {
        justify-content: center;
        display: flex;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .subscription-page .hero-pricing {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
}

@media (max-width: 576px) {
    .subscription-page .subscription-hero-card {
        padding: 1.75rem 1.5rem;
    }

    .subscription-page .feature-matrix-card {
        padding: 1.5rem;
    }

    .subscription-page .usage-item {
        padding: 1rem 1.05rem;
    }
}
/* Admin testimonials create page */
.page-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.page-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: #142033;
}

.page-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    max-width: 520px;
}

.mini-stats-grid .mini-stat-card {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.05);
    border-radius: 16px;
    padding: 1rem 1.25rem;
}

.mini-stat-card .icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(0, 86, 63, 0.12);
    color: #00563F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.mini-stat-card .label {
    margin: 0;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #7b8593;
}

.mini-stat-card .value {
    margin: 0;
    font-weight: 700;
    color: #142033;
    font-size: 1.35rem;
}

.tip-card {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(0, 86, 63, 0.1), rgba(0, 86, 63, 0.05));
    border-radius: 16px;
    border: 1px solid rgba(0, 86, 63, 0.18);
}

.tip-card .icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00563F;
    font-size: 1.2rem;
}

.tip-card h6 {
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #142033;
}

.tip-card p {
    margin: 0;
    color: #526173;
    font-size: 0.9rem;
}

.form-card {
    border-radius: 22px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
}

.form-section-label {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.form-section-label .step {
    background: rgba(0, 86, 63, 0.12);
    color: #00563F;
    font-weight: 700;
    border-radius: 12px;
    padding: 0.2rem 0.75rem;
}

.form-section-label h6 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.form-section-label p {
    margin: 0;
    color: #657084;
    font-size: 0.9rem;
}

.input-icon {
    position: relative;
}

.input-icon .icon {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    transform: translateY(-50%);
    color: #7b8593;
    font-size: 1.05rem;
}

.input-icon .form-control {
    padding-left: 2.5rem;
}

.rating-selector {
    background: #f8fafc;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
}

.rating-stars {
    display: flex;
    gap: 0.6rem;
    font-size: 1.75rem;
    cursor: pointer;
    user-select: none;
}

.rating-stars .star-icon {
    color: #d9dee7;
    transition: transform 0.2s ease;
}

.rating-stars .star-icon:hover {
    transform: scale(1.1);
}

.rating-stars .star-icon.bi-star-fill {
    color: #f4b400;
}

.rating-label {
    display: inline-block;
    margin-top: 0.75rem;
    font-weight: 600;
    color: #364152;
}

.upload-tile {
    border: 2px dashed rgba(0, 86, 63, 0.25);
    background: rgba(0, 86, 63, 0.04);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
}

.upload-tile .helper-text {
    font-size: 0.85rem;
    color: #637185;
    margin-top: 0.6rem;
}

.upload-preview {
    display: flex;
    gap: 1rem;
    align-items: center;
    border: 1px solid rgba(229, 231, 235, 0.9);
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(0, 86, 63, 0.08);
}

.upload-preview img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.publication-toggle {
    background: #f8fafc;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 16px;
    padding: 1rem 1.25rem;
}

.testimonial-preview-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.07);
    padding: 1.75rem;
}

.testimonial-preview-card .preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.testimonial-preview-card .status {
    font-size: 0.8rem;
    font-weight: 600;
}

.chip-success {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
}

.testimonial-preview-card .avatar-placeholder {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(0, 86, 63, 0.08);
    color: #00563F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.testimonial-preview-card .avatar-placeholder img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-preview-card .preview-name {
    font-weight: 700;
    font-size: 1.15rem;
    color: #142033;
}

.testimonial-preview-card .preview-role {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.testimonial-preview-card .preview-rating i {
    color: #f4b400;
    margin-right: 0.15rem;
}

.testimonial-preview-card .preview-quote {
    font-style: italic;
    color: #4f5d6b;
    margin-top: 1rem;
}

.checklist-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    padding: 1.5rem;
}

.checklist-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #6c7a8b;
}

.checklist-card li::before {
    content: '\2022';
    margin-right: 0.5rem;
    color: #9aa5b5;
    font-weight: 700;
}

.checklist-card li.is-complete {
    color: #0f9d58;
    font-weight: 600;
}

.checklist-card li.is-complete::before {
    content: '\2713';
    color: #0f9d58;
}

@media (max-width: 768px) {
    .page-header-inline {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* Subscription page refresh */
.subscription-hero-clean {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 22px;
    padding: 2.25rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.05);
}

.subscription-hero-clean .hero-main {
    max-width: 60%;
}

.subscription-hero-clean .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(0, 86, 63, 0.12);
    color: #00563F;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.subscription-hero-clean .hero-heading {
    font-weight: 700;
    font-size: 1.9rem;
    color: #142033;
    margin: 0.75rem 0 0.5rem;
}

.subscription-hero-clean .hero-meta {
    color: #5c6473;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.subscription-hero-clean .hero-actions .btn {
    border-radius: 12px;
    font-weight: 600;
}

.subscription-hero-clean .hero-summary {
    text-align: right;
}

.subscription-hero-clean .price-tag {
    display: inline-flex;
    align-items: flex-end;
    gap: 0.25rem;
    font-weight: 700;
    color: #142033;
}

.subscription-hero-clean .price-tag .currency {
    font-size: 1.3rem;
    opacity: 0.75;
}

.subscription-hero-clean .price-tag .amount {
    font-size: 2.4rem;
    line-height: 1;
}

.subscription-hero-clean .price-tag .term {
    font-size: 0.9rem;
    color: #6b7583;
    margin-bottom: 0.35rem;
}

.subscription-hero-clean .summary-list {
    margin-top: 1.1rem;
    display: grid;
    gap: 0.4rem;
    color: #6b7583;
    font-size: 0.9rem;
}

.subscription-hero-clean .summary-list i {
    margin-right: 0.35rem;
    color: #00563F;
}

.subscription-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.subscription-metrics .metric-tile {
    display: flex;
    gap: 1rem;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 18px;
    padding: 1.35rem 1.5rem;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.metric-tile .tile-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(0, 86, 63, 0.1);
    color: #00563F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.metric-tile .tile-body .label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7c8997;
}

.metric-tile .tile-body .value {
    display: block;
    font-weight: 700;
    font-size: 1.45rem;
    color: #142033;
    margin-top: 0.25rem;
}

.metric-tile .tile-body .value.status-success {
    color: #15803d;
}

.metric-tile .tile-body .value.status-pending {
    color: #a16207;
}

.progress-xs {
    height: 6px;
    background: rgba(226, 232, 240, 0.8);
    border-radius: 999px;
}

.progress-xs .progress-bar {
    background: linear-gradient(135deg, #00563F, #0f9d58);
    border-radius: 999px;
}

.feature-card-clean {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05);
    padding: 1.75rem;
}

.feature-card-clean .feature-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.feature-card-clean h5 {
    font-weight: 700;
    color: #142033;
    margin-bottom: 0.4rem;
}

.feature-card-clean p {
    color: #6a7687;
    margin: 0;
}

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
    color: #4d5a6a;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-list i {
    color: #0f9d58;
}

.summary-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
    padding: 1.5rem;
}

.summary-card h6 {
    font-weight: 700;
    color: #142033;
    margin-bottom: 1rem;
}

.summary-card .summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.summary-card .summary-list li {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.summary-card .summary-list span {
    color: #7b8593;
    font-size: 0.85rem;
}

.summary-card .summary-list strong {
    color: #142033;
}

.summary-card .summary-list small {
    color: #99a3b4;
    font-size: 0.78rem;
}

.summary-card .summary-actions .btn {
    border-radius: 12px;
    font-weight: 600;
    margin-top: 0.75rem;
}

@media (max-width: 992px) {
    .subscription-hero-clean {
        flex-direction: column;
        text-align: center;
    }
    .subscription-hero-clean .hero-main {
        max-width: 100%;
    }
    .subscription-hero-clean .hero-summary {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .subscription-hero-clean {
        padding: 1.75rem 1.5rem;
    }
}
/* Subscription page v2 refresh */
.subscription-hero-v2 {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
    padding: 2.5rem 2.75rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-v2-main {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.plan-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(0, 86, 63, 0.12);
    color: #00563F;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
}

.subscription-hero-v2 h1 {
    font-size: 1.9rem;
    font-weight: 700;
    color: #142033;
    margin: 0.75rem 0 0.6rem;
}

.subscription-hero-v2 p {
    color: #5a6471;
    max-width: 520px;
}

.hero-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pill.success {
    background: rgba(34, 197, 94, 0.16);
    color: #15803d;
}

.status-pill.neutral {
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
}

.hero-price-card {
    min-width: 260px;
    background: linear-gradient(135deg, rgba(0, 86, 63, 0.12), rgba(0, 86, 63, 0.08));
    border: 1px solid rgba(0, 86, 63, 0.15);
    border-radius: 20px;
    padding: 1.75rem 1.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

.hero-price-card .price {
    font-size: 2.4rem;
    font-weight: 700;
    color: #0f2c26;
}

.hero-price-card .price .currency {
    font-size: 1.4rem;
    margin-right: 0.1rem;
}

.hero-price-card .term {
    font-size: 0.9rem;
    color: #1f3330;
    font-weight: 600;
}

.hero-price-card .billing-summary {
    display: grid;
    gap: 0.3rem;
    font-size: 0.86rem;
    color: #1f3330;
}

.hero-price-card .hero-actions {
    display: grid;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.75rem;
}

.hero-price-card .btn {
    border-radius: 12px;
    font-weight: 600;
}

.hero-v2-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.hero-stat {
    padding: 1.2rem 1.35rem;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: inset 0 0 0 1px rgba(0, 86, 63, 0.05);
    display: grid;
    gap: 0.6rem;
}

.hero-stat .stat-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    font-weight: 600;
    color: #243145;
}

.hero-stat small {
    color: #6b7583;
    font-size: 0.82rem;
}

.progress-xs {
    height: 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.09);
    overflow: hidden;
}

.progress-xs .progress-bar {
    background: linear-gradient(135deg, #00563F, #0f9d58);
}

.section-card {
    border-radius: 22px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
}

.section-card-header {
    padding: 1.75rem 1.85rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.section-card-header h5 {
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #142033;
}

.section-card-header p {
    margin: 0;
    color: #657084;
    font-size: 0.9rem;
}

.section-card .btn {
    align-self: center;
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
}

.benefit-grid {
    padding: 0 1.85rem 1.85rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    background: #f9fbfa;
    border-radius: 18px;
    padding: 1.25rem 1.35rem;
    border: 1px solid rgba(229, 231, 235, 0.7);
    display: grid;
    gap: 0.75rem;
}

.benefit-card h6 {
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.benefit-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
    color: #4b5765;
    font-size: 0.9rem;
}

.benefit-card li i {
    color: #0f9d58;
    margin-right: 0.4rem;
}

.benefit-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(0, 86, 63, 0.12);
    color: #00563F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.lifecycle-card-v2 {
    border-radius: 22px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
}

.lifecycle-card-v2 .timeline {
    list-style: none;
    margin: 0;
    padding: 0 1.85rem 1.5rem;
    display: grid;
    gap: 1rem;
}

.lifecycle-card-v2 .timeline li {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.lifecycle-card-v2 .timeline .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 0.3rem;
    background: #d1d5db;
}

.lifecycle-card-v2 .timeline .dot.complete {
    background: #0f9d58;
}

.lifecycle-card-v2 .timeline .dot.active {
    background: #00563F;
    box-shadow: 0 0 0 4px rgba(0, 86, 63, 0.18);
}

.lifecycle-card-v2 .timeline .dot.upcoming {
    background: rgba(0, 86, 63, 0.25);
}

.lifecycle-card-v2 .timeline span {
    display: block;
    font-size: 0.85rem;
    color: #6c7888;
}

.lifecycle-card-v2 .timeline strong {
    color: #1f2937;
}

.lifecycle-card-v2 .lifecycle-actions {
    padding: 0 1.85rem 1.85rem;
    display: grid;
    gap: 0.6rem;
}

.lifecycle-card-v2 .btn {
    border-radius: 12px;
    font-weight: 600;
}

.payment-history-card {
    border-radius: 22px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
}

.payment-history-card .table {
    margin-bottom: 0;
}

.payment-history-card .table tbody tr:hover {
    background: rgba(0, 86, 63, 0.05);
}

@media (max-width: 992px) {
    .subscription-hero-v2 {
        padding: 2rem;
    }

    .hero-price-card {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .subscription-hero-v2 {
        padding: 1.75rem 1.5rem;
    }

    .hero-v2-main {
        gap: 1.5rem;
    }
}
/* Pricing hero v2 */
.pricing-hero-section {
    position: relative;
    padding: 6rem 0 5rem;
    background: radial-gradient(circle at top left, rgba(0, 86, 63, 0.45), transparent 55%),
                radial-gradient(circle at top right, rgba(0, 86, 63, 0.3), transparent 50%),
                linear-gradient(135deg, #00563F, #007c63);
    color: #ffffff;
    overflow: hidden;
}

.pricing-hero-content .pricing-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.pricing-hero-content .pricing-hero-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    margin: 1rem 0 0.5rem;
}

.pricing-hero-content .pricing-hero-subtitle {
    max-width: 520px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.82);
}

.pricing-hero-cta .btn {
    border-radius: 999px;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.pricing-hero-cta .btn:hover {
    transform: translateY(-2px);
}

.pricing-hero-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
}

.pricing-hero-benefits span i {
    font-size: 1rem;
}

.pricing-hero-illustration {
    position: relative;
    width: 100%;
    max-width: 420px;
    min-height: 320px;
}

.pricing-hero-illustration .bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    filter: blur(0);
}

.pricing-hero-illustration .bubble-1 { width: 220px; height: 220px; top: 0; right: 5%; }
.pricing-hero-illustration .bubble-2 { width: 140px; height: 140px; bottom: 8%; left: 12%; }
.pricing-hero-illustration .bubble-3 { width: 90px; height: 90px; top: 55%; right: 25%; }

.hero-preview-card {
    position: relative;
    z-index: 2;
    background: #ffffff;
    color: #1f2937;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
    padding: 1.5rem 1.75rem;
    display: grid;
    gap: 1rem;
}

.hero-preview-card .thumb {
    width: 100%;
    height: 140px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 86, 63, 0.18), rgba(0, 86, 63, 0.07));
}

.hero-preview-card h6 {
    margin: 0;
    font-weight: 700;
}

.hero-preview-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
    color: #4c5867;
    font-size: 0.95rem;
}

.hero-preview-card li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.hero-preview-card li i {
    color: #0f9d58;
}

.pricing-hero-stats {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 1rem 1.5rem;
    gap: 1rem 2.25rem;
}

.pricing-hero-stats .stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items: center;
    min-width: 140px;
}

.pricing-hero-stats .label {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.pricing-hero-stats .value {
    font-weight: 700;
    font-size: 1.25rem;
}

@media (max-width: 992px) {
    .pricing-hero-section {
        text-align: center;
    }

    .hero-price-card {
        align-items: center;
    }

    .pricing-hero-stats {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .pricing-hero-section {
        padding: 4.5rem 0 3.5rem;
    }

    .pricing-hero-stats {
        padding: 1rem;
        gap: 1rem;
    }
}

@keyframes badgePulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.pricing-hero-benefits span:hover {
    animation: badgePulse 0.8s ease;
}
/* Family dashboard v2 updates */
.dashboard-hero {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    padding: 2.25rem;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
    gap: 2rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.dashboard-hero-main h1 {
    font-weight: 700;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    color: #142033;
    margin-bottom: 0.4rem;
}

.dashboard-hero-main .lead {
    margin-bottom: 1rem;
    color: #5a6471;
}

.pending-message {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(0, 86, 63, 0.12);
    color: #00563F;
    font-weight: 600;
    font-size: 0.9rem;
}

.hero-controls {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-start;
}

.hero-plan-chip {
    background: #f8fafc;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 14px;
    padding: 0.75rem 1rem;
    display: grid;
    gap: 0.2rem;
}

.hero-plan-chip .label {
    font-weight: 700;
    color: #1f2937;
}

.hero-plan-chip .meta {
    color: #657084;
    font-size: 0.85rem;
}

.hero-controls .btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.65rem 1.4rem;
}

.dashboard-hero-graphic {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 1rem;
}

.graphic-card {
    flex: 1;
    background: linear-gradient(135deg, rgba(0, 86, 63, 0.14), rgba(0, 86, 63, 0.05));
    border: 1px solid rgba(0, 86, 63, 0.18);
    border-radius: 18px;
    padding: 1.5rem;
    display: grid;
    gap: 0.65rem;
    color: #1f2a37;
}

.graphic-card .graphic-title {
    font-size: 0.95rem;
    color: #374151;
    font-weight: 600;
}

.graphic-card .graphic-value {
    font-weight: 700;
    font-size: 2.1rem;
}

.graphic-card .graphic-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.graphic-card .graphic-trend.up {
    color: #15803d;
}

.graphic-card .graphic-trend.down {
    color: #dc2626;
}

.graphic-card .graphic-footer {
    font-size: 0.82rem;
    color: #53606e;
}

.graphic-accent {
    width: 80px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(0, 86, 63, 0.22), transparent);
}

.metric-card {
    position: relative;
    text-decoration: none;
}

.metric-card .metric-delta {
    position: absolute;
    bottom: 0.9rem;
    right: 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.metric-card .metric-delta.up {
    color: #0f9d58;
}

.metric-card .metric-delta.down {
    color: #dc2626;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.1);
}

.action-rail {
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
    padding: 1.75rem;
    overflow: visible; /* Prevent clipping of action tiles */
}

.action-rail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.action-rail-header h5 {
    font-weight: 700;
    color: #142033;
    margin: 0;
}

.action-rail-header span {
    color: #657084;
    font-size: 0.9rem;
}

.action-rail-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    overflow: visible; /* Ensure items aren't clipped */
}

.action-tile {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    background: #f9fbfa;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.action-tile:hover {
    background: #ffffff;
    border-color: rgba(0, 86, 63, 0.22);
    box-shadow: 0 16px 30px rgba(0, 86, 63, 0.12);
}

.tile-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(0, 86, 63, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00563F;
    font-size: 1.3rem;
}

.tile-body h6 {
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.tile-body p {
    margin: 0;
    font-size: 0.85rem;
    color: #5d6775;
}

.tile-cta {
    margin-left: auto;
    color: #00563F;
    font-size: 1.1rem;
}

.insight-card.neutral {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.06));
    border: 1px solid rgba(59, 130, 246, 0.18);
}

@media (max-width: 1400px) {
    .action-rail-strip {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 1200px) {
    .dashboard-hero {
        grid-template-columns: 1fr;
    }

    .dashboard-hero-graphic {
        order: -1;
    }

    .hero-controls {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
    }
    
    .action-rail-strip {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 992px) {
    .action-rail-strip {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-hero {
        padding: 1.75rem;
    }

    .action-rail-strip {
        grid-template-columns: 1fr;
    }
}

/* Profile Info Section */
.profile-info-item {
    padding: 0.75rem 0;
}

.profile-info-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-info-value {
    font-size: 1rem;
    font-weight: 500;
    color: #142033;
    word-break: break-word;
}

.profile-info-value:empty::before {
    content: 'Not set';
    color: #9ca3af;
    font-style: italic;
}

/* Nanny dashboard refresh */
.nanny-dashboard {
    display: grid;
    gap: 2.5rem;
}

.nanny-hero {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.09);
    padding: 2.5rem;
}

.nanny-hero-main {
    display: flex;
    justify-content: space-between;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.nanny-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    background: rgba(0, 86, 63, 0.12);
    color: #00563F;
    font-weight: 600;
}

.nanny-hero h1 {
    font-weight: 700;
    font-size: clamp(1.9rem, 3.5vw, 2.5rem);
    margin: 1rem 0 0.4rem;
    color: #142033;
}

.hero-subtitle {
    font-size: 1rem;
    color: #5d6876;
    margin-bottom: 1.2rem;
}

.status-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.status-pills .pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
}

.status-pills .pill.verified {
    background: rgba(34, 197, 94, 0.18);
    color: #15803d;
}

.status-pills .pill.pending {
    background: rgba(234, 179, 8, 0.2);
    color: #a16207;
}

.status-pills .pill.neutral {
    background: rgba(15, 23, 42, 0.08);
    color: #334155;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-actions .btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
}

.hero-trend-card {
    min-width: 260px;
    flex: 1;
    background: linear-gradient(135deg, rgba(0, 86, 63, 0.14), rgba(0, 86, 63, 0.03));
    border: 1px solid rgba(0, 86, 63, 0.16);
    border-radius: 20px;
    padding: 1.75rem;
    display: grid;
    gap: 0.65rem;
    color: #1f2937;
}

.hero-trend-card .trend-header {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: #4b5563;
}

.hero-trend-card .trend-value {
    font-size: 2.3rem;
    font-weight: 700;
}

.hero-trend-card .trend-change {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}

.hero-trend-card .trend-change.up {
    color: #15803d;
}

.hero-trend-card .trend-change.down {
    color: #dc2626;
}

.nanny-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.nanny-metric-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.35rem;
    border-radius: 18px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nanny-metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.1);
}

.nanny-metric-card .metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(0, 86, 63, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00563F;
    font-size: 1.3rem;
}

.metric-content {
    display: grid;
    gap: 0.25rem;
}

.metric-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #142033;
}

.metric-label {
    font-weight: 600;
    color: #334155;
}

.metric-helper {
    font-size: 0.85rem;
    color: #6b7280;
}

.metric-chevron {
    margin-left: auto;
    color: #00563F;
    font-size: 1.1rem;
}

.nanny-action-rail {
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
    padding: 1.9rem;
}

.rail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.rail-header h5 {
    margin: 0;
    font-weight: 700;
    color: #142033;
}

.rail-header span {
    font-size: 0.9rem;
    color: #6c7685;
}

.rail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.rail-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 18px;
    padding: 1.1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.rail-card:hover {
    background: #ffffff;
    border-color: rgba(0, 86, 63, 0.22);
    box-shadow: 0 16px 30px rgba(0, 86, 63, 0.12);
}

.rail-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: rgba(0, 86, 63, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00563F;
    font-size: 1.4rem;
}

.rail-card h6 {
    margin-bottom: 0.25rem;
    font-weight: 700;
    color: #1f2937;
}

.rail-card p {
    margin: 0;
    color: #6b7584;
    font-size: 0.88rem;
}

.rail-chevron {
    margin-left: auto;
    color: #00563F;
    font-size: 1.1rem;
}

@media (max-width: 992px) {
    .nanny-hero {
        padding: 2rem;
    }
}

/* Fancy Notifications Section */
.nanny-notifications-fancy {
    animation: fadeInDown 0.6s ease-out;
}

.notifications-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    border: 1px solid rgba(0, 86, 63, 0.15);
    box-shadow: 0 20px 50px rgba(0, 86, 63, 0.12), 0 0 0 1px rgba(0, 86, 63, 0.05);
    overflow: hidden;
    position: relative;
}

.notifications-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00563F 0%, #008060 50%, #00a67f 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 2rem;
    background: linear-gradient(135deg, rgba(0, 86, 63, 0.08), rgba(0, 86, 63, 0.03));
    border-bottom: 1px solid rgba(0, 86, 63, 0.1);
}

.notifications-header-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.notifications-icon-wrapper {
    position: relative;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #00563F 0%, #008060 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 86, 63, 0.25);
}

.notification-pulse {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: #ef4444;
    border-radius: 50%;
    border: 3px solid white;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.notifications-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #142033;
}

.notifications-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.notifications-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00563F 0%, #008060 100%);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 86, 63, 0.3);
    animation: bounceIn 0.6s ease-out;
}

.badge-count {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.notifications-list {
    padding: 1.5rem 2rem;
    display: grid;
    gap: 1rem;
    max-height: 500px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.notification-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #00563F 0%, #008060 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification-item.unread {
    background: linear-gradient(135deg, rgba(0, 86, 63, 0.05), rgba(0, 86, 63, 0.02));
    border-color: rgba(0, 86, 63, 0.2);
    box-shadow: 0 4px 12px rgba(0, 86, 63, 0.08);
}

.notification-item.unread::before {
    opacity: 1;
}

.notification-item:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 20px rgba(0, 86, 63, 0.12);
}

.notification-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00563F;
    margin-top: 0.5rem;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification-item.unread .notification-indicator {
    opacity: 1;
    animation: pulse 2s ease-in-out infinite;
}

.notification-content {
    flex: 1;
    display: grid;
    gap: 0.75rem;
}

.notification-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.notification-subject {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #142033;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-subject i {
    color: #00563F;
    font-size: 1.2rem;
}

.notification-time {
    font-size: 0.85rem;
    color: #9ca3af;
    white-space: nowrap;
    flex-shrink: 0;
}

.notification-from {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.notification-from i {
    color: #00563F;
}

.notification-message {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.95rem;
}

.notification-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.btn-notification {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-job {
    background: linear-gradient(135deg, #00563F 0%, #008060 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 86, 63, 0.25);
}

.btn-view-job:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 86, 63, 0.35);
    color: white;
}

.btn-mark-read {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.btn-mark-read:hover {
    background: #e5e7eb;
    color: #374151;
    transform: translateY(-2px);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .nanny-hero {
        padding: 1.6rem;
    }

    .rail-grid {
        grid-template-columns: 1fr;
    }

    .notifications-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem;
    }

    .notifications-list {
        padding: 1rem 1.5rem;
    }

    .notification-item {
        padding: 1rem;
    }

    .notification-header-row {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ============================================
   Fix for Inactive Page - Overlay Blocking Interactions
   ============================================ */

/* ============================================
   COMPREHENSIVE MODAL FIX - Bootstrap 5 Compatible
   ============================================ */

/* Bootstrap 5 Modal Base Styles */
.modal {
    z-index: 1055 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    outline: 0 !important;
    pointer-events: none !important; /* Container doesn't block */
    /* CRITICAL: Remove any blur effects */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
}

.modal.show {
    display: block !important;
}

.modal-dialog {
    position: relative !important;
    width: auto !important;
    margin: 1.75rem auto !important;
    pointer-events: none !important; /* Dialog container doesn't block */
    z-index: 1056 !important;
    /* CRITICAL: Remove any blur effects */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
}

.modal-content {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    pointer-events: auto !important; /* Content IS clickable */
    background-color: #fff !important;
    background-clip: padding-box !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 0.5rem !important;
    outline: 0 !important;
    z-index: 1057 !important;
    /* CRITICAL: Remove any blur effects and ensure clarity */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    opacity: 1 !important;
    /* Ensure it's above navbar */
    isolation: isolate;
}

/* Modal backdrop - blocks background but allows modal content */
.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1050 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: #000 !important;
    pointer-events: auto !important; /* Backdrop blocks background clicks */
    /* CRITICAL: No blur on backdrop */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
}

.modal-backdrop.fade {
    opacity: 0 !important;
}

.modal-backdrop.show {
    opacity: 0.5 !important;
}

/* When modal is open */
body.modal-open {
    overflow: hidden !important;
}

body.modal-open .modal {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* CRITICAL: Modal content and all children must be interactive and clear */
.modal-content *,
.modal-header *,
.modal-body *,
.modal-footer * {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1058 !important;
    /* CRITICAL: Remove any blur effects */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    opacity: 1 !important;
}

/* Buttons in modals */
.modal .btn,
.modal button,
.modal input[type="button"],
.modal input[type="submit"],
.modal input[type="reset"] {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 1059 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
}

/* Form elements in modals */
.modal input,
.modal select,
.modal textarea,
.modal label {
    pointer-events: auto !important;
    cursor: text !important;
    z-index: 1059 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
}

/* Links in modals */
.modal a {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 1059 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
}

/* Close button */
.modal .btn-close {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 1060 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
}

/* CRITICAL: Ensure navbar doesn't affect modals */
body.modal-open .navbar-modern {
    z-index: 1000 !important; /* Below modal */
    backdrop-filter: blur(20px); /* Keep navbar blur, but below modal */
}

/* ============================================
   ULTIMATE MODAL FIX - Override Everything
   ============================================ */

/* Force modal to create its own stacking context */
.modal {
    isolation: isolate !important; /* Create new stacking context */
}

.modal.show {
    display: block !important;
}

/* Force modal content to be clear and interactive */
.modal-content {
    position: relative !important;
    z-index: 9999 !important; /* Very high z-index */
    pointer-events: auto !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    opacity: 1 !important;
    isolation: isolate !important; /* New stacking context */
    transform: translateZ(0) !important; /* Force hardware acceleration */
    will-change: auto !important;
}

/* Force all modal children */
.modal-content * {
    pointer-events: auto !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    opacity: 1 !important;
}

/* Ensure backdrop is below */
.modal-backdrop {
    z-index: 1050 !important;
    pointer-events: auto !important;
}

/* When modal is open, ensure navbar doesn't interfere */
body.modal-open {
    overflow: hidden !important;
}

body.modal-open .navbar-modern {
    z-index: 1000 !important;
    isolation: isolate !important;
}

/* ============================================
   NUCLEAR MODAL FIX - Complete Isolation
   ============================================ */

/* When modal is open, completely remove navbar blur */
body.modal-open #mainNavbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    background: rgba(255, 255, 255, 0.95) !important; /* Solid background instead */
}

/* Force modal to be completely isolated */
body.modal-open .modal.show {
    position: fixed !important;
    z-index: 99999 !important; /* Extremely high */
    isolation: isolate !important;
}

body.modal-open .modal-content {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    opacity: 1 !important;
    transform: translateZ(0) !important;
    will-change: auto !important;
}

/* Fix for stuck backdrops when modal is closed */
body:not(.modal-open) .modal-backdrop {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

body:not(.modal-open) .modal {
    display: none !important;
}

/* Ensure main content is interactive when no modal */
body:not(.modal-open) main {
    position: relative;
    z-index: 1;
    pointer-events: auto !important;
}

/* When modal is open, main content should be behind */
body.modal-open main {
    z-index: 1 !important;
    pointer-events: auto !important; /* Still interactive, just behind modal */
}

/* Ensure cards and buttons are clickable (when no modal) */
body:not(.modal-open) .card,
body:not(.modal-open) .btn,
body:not(.modal-open) a,
body:not(.modal-open) button,
body:not(.modal-open) input,
body:not(.modal-open) select,
body:not(.modal-open) textarea {
    position: relative;
    z-index: 2;
    pointer-events: auto !important;
}

/* Fix navbar backdrop-filter not blocking content */
.navbar-modern {
    isolation: isolate;
}

/* Ensure container content is above any potential overlays */
.container {
    position: relative;
    z-index: 1;
}

/* Ensure family application detail page is fully interactive */
.family-application-detail,
.family-application-detail * {
    pointer-events: auto !important;
}

/* Remove any backdrop-filter that might cause blur/blocking on main content */
main .card,
main .card-body,
main .card-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: blur(0) !important;
}

/* Critical fix: Ensure body and html are fully interactive */
body {
    pointer-events: auto !important;
    opacity: 1 !important;
    position: relative;
}

html {
    pointer-events: auto !important;
    opacity: 1 !important;
}

/* Remove any pseudo-elements that might block clicks */
.card::before,
.card::after,
.btn::before,
.btn::after {
    pointer-events: none !important;
}

/* Ensure navbar doesn't create a blocking layer */
.navbar-modern::before,
.navbar-modern::after {
    pointer-events: none !important;
}

/* ============================================
   Agency Dashboard Job Pipeline Cards
   ============================================ */

.job-pipeline-card {
    border: 1px solid rgba(0, 86, 63, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.job-pipeline-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.card-header-modern {
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px 16px 0 0;
}

.pipeline-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.job-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 600px;
    overflow-y: auto;
}

.job-item {
    padding: 1rem;
    background: rgba(0, 86, 63, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(0, 86, 63, 0.08);
    transition: all 0.2s;
}

.job-item:hover {
    background: rgba(0, 86, 63, 0.05);
    border-color: rgba(0, 86, 63, 0.15);
    transform: translateX(4px);
}

.job-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 0.75rem;
}

.job-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.job-title a {
    color: #142033;
    text-decoration: none;
    transition: color 0.2s;
}

.job-title a:hover {
    color: #00563F;
}

.job-item-details {
    margin-bottom: 0.75rem;
}

.job-item-details p {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #4b5563;
    line-height: 1.5;
}

.job-item-details i {
    color: #00563F;
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

.job-item-details small {
    font-size: 0.85rem;
    color: #6b7280;
}

.job-item-details small i {
    color: #6b7280;
}

.job-item-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.job-item-actions .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.job-item-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .job-pipeline-card {
        margin-bottom: 1.5rem;
    }
    
    .job-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .job-item-actions {
        width: 100%;
    }
    
    .job-item-actions .btn {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .card-header-modern {
        padding: 1rem;
    }
    
    .pipeline-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .job-item {
        padding: 0.875rem;
    }
    
    .job-title {
        font-size: 0.95rem;
    }
}

/* ============================================
   Agency Dashboard Modern Design
   ============================================ */

.agency-dashboard-modern {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 200px);
    padding-top: 2rem;
}

/* Dashboard Header */
.dashboard-header-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 86, 63, 0.1);
}

.dashboard-avatar {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid #00563F;
    box-shadow: 0 4px 12px rgba(0, 86, 63, 0.2);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00563F 0%, #008060 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    color: #142033;
    margin: 0;
}

.dashboard-subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

.dashboard-date {
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 500;
}

.dashboard-date i {
    color: #00563F;
    margin-right: 0.5rem;
}

.status-badge-modern {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

/* Stats Grid */
.stats-grid-modern {
    margin-bottom: 2rem;
}

.stat-card-modern {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 86, 63, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--stat-color) 0%, var(--stat-color-light) 100%);
}

.stat-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.stat-primary {
    --stat-color: #00563F;
    --stat-color-light: #008060;
}

.stat-info {
    --stat-color: #0dcaf0;
    --stat-color-light: #31d2f2;
}

.stat-success {
    --stat-color: #00c896;
    --stat-color-light: #00d99f;
}

.stat-warning {
    --stat-color: #ffb84d;
    --stat-color-light: #ffc970;
}

.stat-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: white;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--stat-color) 0%, var(--stat-color-light) 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.stat-primary .stat-icon-wrapper {
    background: linear-gradient(135deg, #00563F 0%, #008060 100%);
}

.stat-info .stat-icon-wrapper {
    background: linear-gradient(135deg, #0dcaf0 0%, #31d2f2 100%);
}

.stat-success .stat-icon-wrapper {
    background: linear-gradient(135deg, #00c896 0%, #00d99f 100%);
}

.stat-warning .stat-icon-wrapper {
    background: linear-gradient(135deg, #ffb84d 0%, #ffc970 100%);
}

.stat-content-wrapper {
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #142033;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-description {
    font-size: 0.7rem;
    color: #6b7280;
}

.stat-action-link {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 1.25rem;
    transition: all 0.2s;
    text-decoration: none;
}

.stat-action-link:hover {
    background: rgba(0, 86, 63, 0.1);
    color: #00563F;
    transform: translateX(4px);
}

/* Jobs Pipeline Section */
.jobs-pipeline-section {
    margin-bottom: 3rem;
}

.section-header-modern {
    margin-bottom: 2rem;
}

.section-title-modern {
    font-size: 1.75rem;
    font-weight: 700;
    color: #142033;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title-modern i {
    color: #00563F;
    font-size: 1.5rem;
}

.section-subtitle-modern {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
    padding-left: 2.5rem;
}

/* Quick Actions Section */
.quick-actions-section {
    margin-bottom: 2rem;
}

.quick-action-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
    border: 2px solid rgba(0, 86, 63, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
    min-height: 140px;
}

.quick-action-card.d-flex.flex-column {
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}

.quick-action-card.d-flex.flex-column .quick-action-arrow {
    align-self: flex-end;
    margin-top: auto;
}

.quick-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #00563F;
    text-decoration: none;
}

.quick-action-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quick-action-content {
    flex: 1;
}

.quick-action-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #142033;
    margin-bottom: 0.25rem;
}

.quick-action-desc {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.quick-action-arrow {
    font-size: 1.25rem;
    color: #9ca3af;
    transition: all 0.2s;
    flex-shrink: 0;
}

.quick-action-card:hover .quick-action-arrow {
    color: #00563F;
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 991px) {
    .dashboard-title {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .section-title-modern {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .dashboard-header-modern {
        padding: 1.5rem;
    }
    
    .dashboard-avatar {
        width: 60px;
        height: 60px;
    }
    
    .dashboard-title {
        font-size: 1.25rem;
    }
    
    .stat-card-modern {
        padding: 0.875rem;
    }
    
    .stat-icon-wrapper {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    .quick-action-card {
        padding: 1.25rem;
    }
    
    .quick-action-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}

/* Dashboard Sidebar */
.dashboard-sidebar {
    position: sticky;
    top: 100px;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 86, 63, 0.1);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #142033;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(0, 86, 63, 0.1);
    margin-bottom: 1rem;
}

.sidebar-title i {
    color: #00563F;
    margin-right: 0.5rem;
}

.quick-action-card-sidebar {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    border: 2px solid rgba(0, 86, 63, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.quick-action-card-sidebar:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #00563F;
    text-decoration: none;
}

.quick-action-icon-sidebar {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.quick-action-content-sidebar {
    flex: 1;
    min-width: 0;
}

.quick-action-content-sidebar .quick-action-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #142033;
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.quick-action-content-sidebar .quick-action-desc {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.quick-action-card-sidebar .quick-action-arrow {
    flex-shrink: 0;
    color: #6b7280;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.quick-action-card-sidebar:hover .quick-action-arrow {
    color: #00563F;
    transform: translateX(4px);
}

@media (max-width: 991px) {
    .dashboard-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
}

/* ============================================
   Nanny Dashboard Modern Design
   ============================================ */

.nanny-dashboard-modern {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 200px);
    padding-top: 2rem;
}

.trend-card-modern {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 86, 63, 0.1);
    text-align: center;
}

.trend-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.trend-value-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: #142033;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.trend-indicator {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.trend-indicator.trend-up {
    background: rgba(0, 200, 150, 0.1);
    color: #00c896;
}

.trend-indicator.trend-down {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.applications-pipeline-section {
    margin-bottom: 3rem;
}

/* ============================================
   Nanny Notifications Dashboard Card
   ============================================ */

.notification-dashboard-card {
    background: white;
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    border: 2px solid rgba(0, 86, 63, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.notification-dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00563F 0%, #008060 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.notification-dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #00563F;
    text-decoration: none;
}

.notification-dashboard-card:hover::before {
    transform: scaleX(1);
}

.notification-dashboard-card.has-unread {
    border-color: #ffb84d;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 0 0 rgba(255, 184, 77, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 0 8px rgba(255, 184, 77, 0);
    }
}

.notification-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #00563F 0%, #008060 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 86, 63, 0.3);
}

.notification-dashboard-card.has-unread .notification-card-icon {
    background: linear-gradient(135deg, #ffb84d 0%, #ffc970 100%);
    animation: bell-ring 2s infinite;
}

@keyframes bell-ring {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-10deg);
    }
    20%, 40% {
        transform: rotate(10deg);
    }
    50% {
        transform: rotate(0deg);
    }
}

.notification-badge-pulse {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 3px solid white;
    animation: pulse-badge 1.5s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
}

.notification-card-content {
    flex: 1;
}

.notification-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #142033;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.notification-card-desc {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
}

.notification-card-arrow {
    font-size: 1.5rem;
    color: #9ca3af;
    transition: all 0.2s;
    flex-shrink: 0;
}

.notification-dashboard-card:hover .notification-card-arrow {
    color: #00563F;
    transform: translateX(4px);
}

/* ============================================
   Notifications Page Styles
   ============================================ */

.notifications-page-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.notification-card-modern {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(0, 86, 63, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 1.25rem;
}

.notification-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #00563F 0%, #008060 100%);
    transition: width 0.3s ease;
}

.notification-card-modern.unread {
    border-color: #ffb84d;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.notification-card-modern.unread::before {
    width: 6px;
    background: linear-gradient(180deg, #ffb84d 0%, #ffc970 100%);
}

.notification-card-modern:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.notification-indicator-modern {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00563F;
    flex-shrink: 0;
    margin-top: 0.5rem;
    transition: opacity 0.3s ease;
}

.notification-card-modern.read .notification-indicator-modern {
    opacity: 0;
}

.notification-content-modern {
    flex: 1;
}

.notification-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.notification-title-section {
    flex: 1;
}

.notification-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #142033;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-title i {
    color: #00563F;
    font-size: 1.25rem;
}

.notification-from-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.notification-from-modern i {
    color: #00563F;
}

.notification-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.notification-time-modern {
    font-size: 0.875rem;
    color: #9ca3af;
    white-space: nowrap;
}

.notification-message-modern {
    background: rgba(0, 86, 63, 0.03);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #00563F;
}

.notification-message-modern p {
    margin: 0;
    color: #374151;
    line-height: 1.6;
}

.notification-job-info {
    margin-bottom: 1rem;
}

.job-info-card {
    background: rgba(0, 86, 63, 0.05);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(0, 86, 63, 0.1);
}

.job-info-card i {
    font-size: 1.5rem;
    color: #00563F;
    flex-shrink: 0;
}

.notification-actions-modern {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.mark-read-btn-modern {
    transition: all 0.2s;
}

.mark-read-btn-modern:hover {
    background: #00563F;
    border-color: #00563F;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .notification-dashboard-card {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .notification-card-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
    
    .notification-card-title {
        font-size: 1.1rem;
    }
    
    .notification-card-modern {
        padding: 1.25rem;
        flex-direction: column;
    }
    
    .notification-header-modern {
        flex-direction: column;
    }
    
    .notification-meta {
        align-items: flex-start;
    }
}

/* ============================================
   Family Dashboard Modern Styles
   ============================================ */

.family-dashboard-modern {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

/* Family Hero Section */
.family-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 24px;
    padding: 2.5rem;
    color: white;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--primary-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.family-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: rotate(45deg);
}

.family-hero-main {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-content {
    flex: 1;
}

.hero-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge.active {
    background: rgba(255, 255, 255, 0.25);
}

.hero-badge.inactive {
    background: rgba(255, 184, 77, 0.3);
}

.hero-badge.info {
    background: rgba(23, 162, 184, 0.3);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-actions .btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
}

.hero-actions .btn-outline-primary {
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.hero-actions .btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: white;
}

.hero-trend-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    width: 100%;
    max-width: 300px;
    text-align: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.trend-header {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.trend-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.trend-change {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.trend-change.up {
    color: #28a745;
}

.trend-change.down {
    color: #dc3545;
}

.trend-footer {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Family Metrics Section */
.family-metrics {
    margin-bottom: 2.5rem;
}

.family-metric-card {
    background: white;
    border: 1px solid rgba(0, 86, 63, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #142033;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.family-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 16px 16px 0 0;
}

.family-metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #142033;
}

.metric-icon-wrapper {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.metric-icon-wrapper.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.metric-icon-wrapper.info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.metric-icon-wrapper.warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.metric-icon-wrapper.success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

.metric-content {
    flex-grow: 1;
}

.metric-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: #142033;
}

.metric-label {
    display: block;
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.metric-helper {
    display: block;
    font-size: 0.8rem;
    color: #9ca3af;
}

.metric-chevron {
    font-size: 1.2rem;
    color: #9ca3af;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.family-metric-card:hover .metric-chevron {
    transform: translateX(5px);
    color: var(--primary-color);
}

/* Application Pipeline Section */
.family-pipeline-section {
    margin-bottom: 2.5rem;
}

.pipeline-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pipeline-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #142033;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pipeline-title i {
    color: var(--primary-color);
}

.pipeline-card-modern {
    background: white;
    border: 1px solid rgba(0, 86, 63, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.pipeline-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.pipeline-card-header {
    padding: 1.25rem 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pipeline-card-header.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.pipeline-card-header.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.pipeline-card-header.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

.pipeline-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.pipeline-card-title {
    color: white;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.pipeline-count {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.pipeline-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pipeline-job-list {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pipeline-job-item {
    background: rgba(0, 86, 63, 0.02);
    border: 1px solid rgba(0, 86, 63, 0.08);
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.2s;
}

.pipeline-job-item:hover {
    background: rgba(0, 86, 63, 0.05);
    border-color: rgba(0, 86, 63, 0.15);
}

.job-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.job-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.job-title a {
    color: #142033;
    text-decoration: none;
    transition: color 0.2s;
}

.job-title a:hover {
    color: #00563F;
}

.job-item-details {
    margin-bottom: 0.75rem;
}

.job-item-details p {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #4b5563;
}

.job-item-details i {
    color: #00563F;
    margin-right: 0.5rem;
}

.job-item-actions {
    display: flex;
    gap: 0.5rem;
}

.pipeline-empty {
    text-align: center;
    padding: 2rem 0;
    color: #6b7280;
}

.pipeline-empty i {
    font-size: 3rem;
    color: #ced4da;
    margin-bottom: 1rem;
}

/* Quick Actions Section */
.family-action-rail {
    margin-bottom: 2.5rem;
}

.rail-header-modern {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.rail-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #142033;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rail-title i {
    color: var(--primary-color);
}

.rail-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
}

.rail-card-modern {
    background: white;
    border: 1px solid rgba(0, 86, 63, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: #142033;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    height: 100%;
}

.rail-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #142033;
}

.rail-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

.rail-icon.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.rail-icon.info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.rail-icon.warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.rail-icon.success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

.rail-card-modern h6 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #142033;
}

.rail-card-modern p {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0;
    flex-grow: 1;
}

.rail-chevron {
    font-size: 1.1rem;
    color: #9ca3af;
    margin-top: auto;
    align-self: flex-end;
    transition: transform 0.2s;
}

.rail-card-modern:hover .rail-chevron {
    transform: translateX(5px);
    color: var(--primary-color);
}

/* Profile Info Card */
.profile-info-card-modern {
    background: white;
    border: 1px solid rgba(0, 86, 63, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.profile-info-card-modern .card-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.profile-info-card-modern .card-header-modern h5 {
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-info-card-modern .card-body {
    padding: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1rem;
    color: #142033;
    font-weight: 600;
}

/* Recent Jobs Card */
.recent-jobs-card-modern {
    background: white;
    border: 1px solid rgba(0, 86, 63, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.recent-jobs-card-modern .card-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.recent-jobs-card-modern .card-header-modern h5 {
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recent-jobs-card-modern .card-body {
    padding: 1.5rem;
}

.recent-jobs-list-modern {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-job-item-modern {
    padding: 1rem;
    background: rgba(0, 86, 63, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(0, 86, 63, 0.08);
    transition: all 0.2s;
}

.recent-job-item-modern:hover {
    background: rgba(0, 86, 63, 0.05);
    border-color: rgba(0, 86, 63, 0.15);
}

.job-title-modern {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.job-title-modern a {
    color: #142033;
    text-decoration: none;
    transition: color 0.2s;
}

.job-title-modern a:hover {
    color: #00563F;
}

.job-meta-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.empty-state-modern {
    text-align: center;
    padding: 2rem 0;
    color: #6b7280;
}

.empty-state-modern i {
    font-size: 3rem;
    color: #ced4da;
    margin-bottom: 1rem;
}

/* Responsive adjustments for Family Dashboard */
@media (max-width: 991px) {
    .family-hero-main {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-trend-card {
        max-width: 100%;
    }
    .family-metrics .row {
        gap: 1rem;
    }
    .pipeline-header-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 767px) {
    .family-dashboard-modern {
        padding: 1.5rem 0;
    }
    .family-hero {
        padding: 1.5rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-badges {
        flex-direction: column;
        gap: 0.5rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .family-metric-card {
        flex-direction: column;
        text-align: center;
    }
    .metric-icon-wrapper {
        margin-bottom: 0.5rem;
    }
    .metric-chevron {
        display: none;
    }
    .rail-header-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .rail-title {
        font-size: 1.2rem;
    }
}

/* Force white text and icons on "How It Works" card headers - Maximum specificity */
.how-it-works-section .card .card-header,
.how-it-works-section .card .card-header.bg-primary,
.how-it-works-section .card .card-header.bg-success,
.how-it-works-section .card .card-header.text-white,
.how-it-works-section .card .card-header[style*="#00563F"],
.how-it-works-section .card-header[style*="background: linear-gradient(135deg, #00563F"] {
    color: #ffffff !important;
}

.how-it-works-section .card .card-header *,
.how-it-works-section .card .card-header.bg-primary *,
.how-it-works-section .card .card-header.bg-success *,
.how-it-works-section .card .card-header.text-white *,
.how-it-works-section .card .card-header[style*="#00563F"] *,
.how-it-works-section .card-header[style*="background: linear-gradient(135deg, #00563F"] * {
    color: #ffffff !important;
}

.how-it-works-section .card .card-header h4,
.how-it-works-section .card .card-header.bg-primary h4,
.how-it-works-section .card .card-header.bg-success h4,
.how-it-works-section .card .card-header.text-white h4,
.how-it-works-section .card .card-header[style*="#00563F"] h4,
.how-it-works-section .card-header[style*="background: linear-gradient(135deg, #00563F"] h4 {
    color: #ffffff !important;
}

.how-it-works-section .card .card-header h4 *,
.how-it-works-section .card .card-header.bg-primary h4 *,
.how-it-works-section .card .card-header.bg-success h4 *,
.how-it-works-section .card .card-header.text-white h4 *,
.how-it-works-section .card .card-header[style*="#00563F"] h4 *,
.how-it-works-section .card-header[style*="background: linear-gradient(135deg, #00563F"] h4 * {
    color: #ffffff !important;
}

.how-it-works-section .card .card-header i,
.how-it-works-section .card .card-header.bg-primary i,
.how-it-works-section .card .card-header.bg-success i,
.how-it-works-section .card .card-header.text-white i,
.how-it-works-section .card .card-header[style*="#00563F"] i,
.how-it-works-section .card-header[style*="background: linear-gradient(135deg, #00563F"] i,
.how-it-works-section .card .card-header .bi {
    color: #ffffff !important;
}

.how-it-works-section .card .card-header span,
.how-it-works-section .card .card-header.bg-primary span,
.how-it-works-section .card .card-header.bg-success span,
.how-it-works-section .card .card-header.text-white span,
.how-it-works-section .card .card-header[style*="#00563F"] span,
.how-it-works-section .card-header[style*="background: linear-gradient(135deg, #00563F"] span {
    color: #ffffff !important;
}

/* ============================================
   Mobile Responsiveness Improvements
   ============================================ */

/* General Mobile Improvements */
@media (max-width: 768px) {
    /* Base font size for better readability */
    body {
        font-size: 16px;
    }
    
    /* Ensure text is readable */
    small,
    .text-muted {
        font-size: 0.875rem;
    }
    
    /* Responsive images */
    img {
        max-width: 100%;
        height: auto;
    }
    
    .avatar-sm,
    .avatar-lg,
    .profile-avatar-large {
        max-width: 100%;
    }
    
    /* Form inputs - prevent zoom on iOS and ensure touch targets */
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
        min-height: 44px;
    }
    
    /* Buttons - ensure proper touch targets */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .btn-sm {
        min-height: 36px;
        padding: 0.5rem 1rem;
    }
    
    .btn-lg {
        min-height: 48px;
        padding: 1rem 2rem;
    }
    
    /* Card padding adjustments */
    .card-body.p-5 {
        padding: 1.5rem !important;
    }
    
    .card-body.p-4 {
        padding: 1.25rem !important;
    }
    
    /* Container padding adjustments */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Display font sizes for mobile */
    .display-1 {
        font-size: 2.5rem !important;
    }
    
    .display-2 {
        font-size: 2rem !important;
    }
    
    .display-3 {
        font-size: 1.75rem !important;
    }
    
    .display-4 {
        font-size: 1.5rem !important;
    }
    
    /* Dropdown menu adjustments */
    .dropdown-menu-modern {
        min-width: 200px;
        max-width: calc(100vw - 2rem);
    }
    
    /* Stat cards spacing */
    .stat-card {
        margin-bottom: 1rem;
    }
    
    /* Row gaps on mobile */
    .row.g-3 > [class*="col-"],
    .row.g-4 > [class*="col-"] {
        margin-bottom: 1rem;
    }
}

/* Extra Small Devices */
@media (max-width: 576px) {
    /* Pricing display adjustments */
    .pricing-price .amount {
        font-size: 2rem !important;
    }
    
    .pricing-price .currency {
        font-size: 1.125rem !important;
    }
    
    .pricing-price .period {
        font-size: 0.85rem !important;
    }
    
    /* Subscription page price display */
    .display-3.fw-bold {
        font-size: 1.75rem !important;
    }
    
    .display-4.fw-bold {
        font-size: 1.5rem !important;
    }
    
    /* Card body padding for very small screens */
    .card-body {
        padding: 1rem !important;
    }
    
    /* Reduce section padding */
    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    /* Smaller buttons on very small screens */
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Stack stat cards */
    .stat-card {
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    /* Navigation adjustments */
    .navbar-brand-modern {
        font-size: 0.9rem;
    }
    
    /* Table improvements for very small screens */
    .table-enhanced {
        font-size: 0.8rem;
    }
    
    .table-enhanced thead th {
        font-size: 0.7rem;
        padding: 0.5rem 0.25rem;
    }
    
    .table-enhanced tbody td {
        font-size: 0.75rem;
        padding: 0.5rem 0.25rem;
    }
}

/* Table Horizontal Scroll Enhancement */
@media (max-width: 768px) {
    /* Ensure tables can scroll horizontally */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: -ms-autohiding-scrollbar;
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    
    /* Add shadow indicators for scrollable tables */
    .table-wrapper::before,
    .table-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 20px;
        pointer-events: none;
        z-index: 1;
    }
}

/* Touch-friendly improvements */
@media (max-width: 768px) {
    /* Increase tap target sizes */
    a,
    button,
    input[type="button"],
    input[type="submit"],
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Links in text should have adequate spacing */
    p a,
    li a {
        padding: 0.25rem 0;
        display: inline-block;
    }
    
    /* Dropdown items */
    .dropdown-item {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    /* Nav links */
    .nav-link {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .navbar-modern {
        min-height: 56px;
    }
    
    .navbar-spacer {
        height: 56px !important;
    }
}
