.hero-grid {
    align-items: center;
}

.hero-copy h1 {
    font-size: 3rem;
}

@media (min-width: 992px) {
    .hero-copy h1 {
        font-size: 3.25rem;
    }
}
.hero-flag-icon {
    /* A color similar to your image */
    color: #7367F0; 
  }

.hero-highlights {
    border-radius: 16px;
}

.login-card {
    border-radius: 16px;
}
/* Perfect-for alignment tweaks */
.perfect-for .row {
    align-items: start;
}

.perfect-for ul li:last-child {
    margin-bottom: 0;
}
/* Core template styles */

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --border-color: #dee2e6;
    --background-color: #f8f9fa;
    --success-color: #10b981;
    --danger-color: #ef4444;
}

body {
    background-color: var(--background-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #212529;
}

/* Landing Page Styles */
.bg-gradient-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

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

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18) !important;
}

/* Responsive images and media */
img, video {
    max-width: 100%;
    height: auto;
}

/* Prevent text overflow */
* {
    overflow-wrap: anywhere;
}

/* Responsive icon circles - scaled to 90% */
.landing-page .rounded-circle[style*="width"] {
    width: clamp(43px, 9vw, 72px) !important;
    height: clamp(43px, 9vw, 72px) !important;
}

/* Scale all section content to 90% */
.landing-page section {
    font-size: 90%;
}

.landing-page section h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.7rem);
}

.landing-page section h3 {
    font-size: clamp(1.125rem, 2.25vw, 1.5rem);
}

.landing-page section p {
    font-size: clamp(0.81rem, 1.62vw, 0.99rem);
}

.landing-page section .fs-4 {
    font-size: clamp(1.08rem, 2.16vw, 1.35rem) !important;
}

.landing-page section .fs-5 {
    font-size: clamp(0.945rem, 1.89vw, 1.125rem) !important;
}

.landing-page .bg-opacity-10 {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}

.landing-page .bg-opacity-10.bg-success {
    background-color: rgba(var(--bs-success-rgb), 0.1) !important;
}

.landing-page .bg-opacity-10.bg-warning {
    background-color: rgba(var(--bs-warning-rgb), 0.1) !important;
}

.landing-page .bg-opacity-10.bg-info {
    background-color: rgba(var(--bs-info-rgb), 0.1) !important;
}

.landing-page .bg-opacity-10.bg-danger {
    background-color: rgba(var(--bs-danger-rgb), 0.1) !important;
}

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(99, 102, 241, 0.1) 100%);
    z-index: 0;
    border-radius: 0 0 0 50%;
}

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

/* Feature Cards with Hover Effect */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Badges */
.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Statistics Display */
.display-4 {
    font-weight: 700;
    letter-spacing: -1px;
}

/* CTA Buttons */
.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* Problem-Solution Cards */
.card.border-danger,
.card.border-success {
    border-width: 2px !important;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .display-4 {
        font-size: clamp(1.575rem, 3.6vw, 2.25rem);
    }
    
    .display-5 {
        font-size: clamp(1.35rem, 3.15vw, 1.8rem);
    }
    
    .fs-3 {
        font-size: clamp(1.125rem, 2.25vw, 1.35rem) !important;
    }

    h1, h2, h3 {
        font-size: clamp(1.35rem, 2.7vw, 2.25rem);
    }

    p, li {
        font-size: clamp(0.81rem, 1.62vw, 0.99rem);
    }
}

/* Login card typography scale */
.landing-page .login-card {
    min-height: 620px;
}

.landing-page .login-card .card-body {
    padding: clamp(2rem, 4vw, 3rem) clamp(1.8rem, 3.5vw, 2.5rem) !important;
}

.landing-page .login-card h3 {
    font-size: clamp(1.35rem, 2.5vw, 1.8rem) !important;
    margin-bottom: 2rem;
}

.landing-page .login-card .form-label {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.landing-page .login-card .form-control {
    font-size: 0.9rem;
    padding: clamp(0.7rem, 1.5vw, 0.9rem) clamp(0.9rem, 1.8vw, 1.2rem);
    margin-bottom: 0.8rem;
}

.landing-page .login-card .mb-4 {
    margin-bottom: 2rem !important;
}

.landing-page .login-card .btn {
    font-size: 0.95rem;
    padding: clamp(0.9rem, 1.8vw, 1.2rem) clamp(1.2rem, 2.5vw, 1.5rem);
    margin-top: 0.5rem;
}

.landing-page .login-card .form-text {
    font-size: 0.81rem;
    margin-bottom: 0.8rem;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Authentication */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-wrapper {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    border: none;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    border-radius: 0.75rem;
}

.auth-header h1 {
    font-weight: 600;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 500;
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

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

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Dashboard - Modern Navbar */
.navbar-core {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    padding-block: clamp(0.5rem, 1vw, 0.75rem);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

/* Navbar container - responsive padding */
.navbar-core .container-fluid {
    padding-inline: clamp(1rem, 4vw, 6rem);
}

/* Logo Section */
.logo-wrapper {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 6px;
    transition: transform 0.3s ease;
}

.logo-wrapper:hover {
    transform: translateY(-2px);
}

.navbar-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

.navbar-brand:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.brand-text {
    letter-spacing: -0.02em;
}

/* Modern Navigation Links */
.nav-link-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
}

.nav-link-modern svg {
    transition: transform 0.2s ease;
}

.nav-link-modern:hover {
    color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.08);
    text-decoration: none;
}

.nav-link-modern:hover svg {
    transform: translateY(-1px);
}

.nav-link-modern.active {
    color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.1);
    font-weight: 600;
}

.nav-link-modern.active::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
}

/* User Menu Button */
.btn-user-menu {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-user-menu:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.btn-user-menu:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
}

/* User Avatar */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.user-avatar-large {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* User Info */
.user-info {
    line-height: 1.2;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.user-role {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Modern Dropdown Menu */
.dropdown-menu-modern {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    min-width: 280px;
    margin-top: 0.5rem;
}

.dropdown-menu-modern .dropdown-header {
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.dropdown-menu-modern .dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
}

.dropdown-menu-modern .dropdown-item:hover {
    background-color: rgba(99, 102, 241, 0.08);
    color: var(--primary-color);
}

.dropdown-menu-modern .dropdown-item svg {
    opacity: 0.7;
}

.dropdown-menu-modern .dropdown-item:hover svg {
    opacity: 1;
}

.dropdown-menu-modern .dropdown-item.text-danger:hover {
    background-color: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}

.dropdown-menu-modern .dropdown-divider {
    margin: 0.5rem 0;
    border-color: #e5e7eb;
}

/* Ensure dropdown menus appear above other content */
.navbar .dropdown-menu {
    z-index: 1040;
}

/* ============================================
   Phone Number Input Styling (intl-tel-input)
   ============================================ */

/* Container styling */
.iti {
    position: relative !important;
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem !important;
    background-color: #fff !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.iti__container {
    width: 100%;
    position: relative !important;
}

/* Flag selector styling */
.iti__flag-container {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 0.75rem !important;
    background-color: #fff !important;
    border-right: 1px solid #dee2e6 !important;
    border-radius: 0.375rem 0 0 0.375rem !important;
    transition: border-color 0.15s ease-in-out, background-color 0.15s ease-in-out !important;
    cursor: pointer !important;
    min-width: 86px !important;
}

.iti__flag-box {
    display: flex !important;
    align-items: center !important;
}

.iti__flag {
    width: 20px !important;
    height: 15px !important;
    border-radius: 3px !important;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08) !important;
    background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.6/build/img/flags.png") !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important;
    flex-shrink: 0 !important;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .iti__flag {
        background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.6/build/img/flags@2x.png") !important;
    }
}

.iti__selected-flag {
    position: relative !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: transparent !important;
}

.iti__selected-flag:hover,
.iti__selected-flag:focus {
    background-color: transparent !important;
}

.iti__selected-dial-code {
    font-size: 0.95rem !important;
    color: #495057 !important;
    font-weight: 500 !important;
}

.iti__arrow {
    margin-left: 0.25rem !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 3px solid transparent !important;
    border-right: 3px solid transparent !important;
    border-top: 4px solid #6c757d !important;
    transition: transform 0.15s ease !important;
}

.iti__selected-flag.iti__active .iti__arrow {
    transform: rotate(180deg) !important;
}

.iti__flag-container:hover {
    background-color: rgba(15, 23, 42, 0.03) !important;
}

/* Input field styling */
.iti__tel-input {
    flex: 1 1 auto !important;
    width: 100% !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #212529 !important;
    background-color: transparent !important;
    background-clip: padding-box !important;
    border: 0 !important;
    border-radius: 0 0.375rem 0.375rem 0 !important;
    height: calc(1.5em + 0.75rem + 2px) !important;
    min-height: 38px !important;
    box-shadow: none !important;
    background-image: none !important;
}

.iti__tel-input:focus {
    outline: none !important;
    box-shadow: none !important;
}

.iti.iti-focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25) !important;
}

.iti.iti-focus .iti__flag-container {
    border-right-color: var(--primary-color) !important;
}

.iti.iti-valid {
    border-color: #198754 !important;
}

.iti.iti-invalid {
    border-color: #dc3545 !important;
}

.iti.iti-valid .iti__flag-container,
.iti.iti-invalid .iti__flag-container {
    border-right-color: inherit !important;
}

.iti.iti-valid .iti__tel-input,
.iti.iti-invalid .iti__tel-input {
    padding-right: calc(1.5em + 0.75rem) !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

.iti.iti-valid .iti__tel-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") !important;
}

.iti.iti-invalid .iti__tel-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") !important;
}

/* Dropdown styling */
.iti__dropdown {
    margin-top: 0.25rem !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #e5e7eb !important;
    z-index: 1050 !important;
    position: absolute !important;
}

.iti__search-input {
    padding: 0.5rem 0.75rem !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.375rem !important;
    margin: 0.5rem !important;
    width: calc(100% - 1rem) !important;
}

.iti__search-input:focus {
    border-color: var(--primary-color) !important;
    outline: none !important;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.2) !important;
}

/* Country list items */
.iti__country {
    padding: 0.5rem 0.75rem !important;
    transition: background-color 0.15s ease !important;
}

.iti__country:hover {
    background-color: rgba(99, 102, 241, 0.08) !important;
}

.iti__country.iti__highlight {
    background-color: rgba(99, 102, 241, 0.15) !important;
}

.iti__country-name,
.iti__dial-code {
    color: #374151 !important;
}

.iti__divider {
    border-bottom: 1px solid #e5e7eb !important;
    padding-bottom: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

/* Error message styling */
.invalid-feedback.phone-error {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
    position: relative;
    z-index: 0;
    clear: both;
}

/* Ensure parent container doesn't overflow */
.mb-3:has(.iti) {
    position: relative;
    overflow: visible;
    display: block;
}

/* Fix for Django's error display */
.text-danger.small.mt-1 {
    margin-top: 0.25rem !important;
    position: relative;
    z-index: 0;
    clear: both;
    display: block;
    width: 100%;
}

/* Ensure iti container stays full width */
.iti.iti--allow-dropdown,
.iti.iti--allow-dropdown.iti--separate-dial-code {
    display: flex !important;
    width: 100% !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-core .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .navbar-nav {
        gap: 0.25rem;
    }
    
    .nav-link-modern span {
        display: none;
    }
    
    .nav-link-modern {
        padding: 0.625rem;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    .logo-wrapper {
        width: 36px;
        height: 36px;
    }
}

.dashboard-main {
    padding: 3rem 1.5rem;
}

.dashboard-hero {
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 1rem;
    padding: 3rem 2rem;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.05);
}

.dashboard-hero p {
    max-width: 540px;
    margin-inline: auto;
}

@media (max-width: 576px) {
    .dashboard-hero {
        padding: 2rem 1.5rem;
    }
}

/* ============================================
   Applicant Table Styles
   ============================================ */

.applicant-table-wrapper {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    margin-inline: -1rem;
}

@media (min-width: 1200px) {
    .applicant-table-wrapper {
        margin-inline: 0;
    }
}

.table-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.table-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
}

.search-box input {
    padding-left: 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    min-width: 280px;
}

.search-box svg {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.entries-select {
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0.75rem;
}

.table-responsive {
    overflow-x: auto;
}

.applicant-table {
    margin: 0;
    width: 100%;
}

.applicant-table thead {
    background-color: #f9fafb;
}

.applicant-table th {
    padding: 1rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.applicant-table th:first-child {
    padding-left: 1.5rem;
}

.applicant-table th:hover {
    background-color: #f3f4f6;
}

.applicant-table th .sort-icon {
    opacity: 0.3;
    transition: opacity 0.2s;
}

.applicant-table th:hover .sort-icon,
.applicant-table th.sorted .sort-icon {
    opacity: 1;
}

.applicant-table tbody tr {
    transition: background-color 0.2s;
    border-bottom: 1px solid #e5e7eb;
}

.applicant-table tbody tr:hover {
    background-color: #f9fafb;
}

.applicant-table td {
    padding: 1rem 1rem;
    font-size: 0.875rem;
    color: #1f2937;
    white-space: nowrap;
}

.applicant-table td:first-child {
    padding-left: 1.5rem;
}

.status-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.status-active {
    background-color: #10b981;
}

.status-inactive {
    background-color: #ef4444;
}

.status-indicator:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.status-indicator::after {
    content: '+';
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.status-indicator.expanded::after {
    content: '−';
}

.action-btn {
    padding: 0.5rem 0.625rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-edit {
    background-color: #3b82f6;
    color: white;
    border: none;
}

.btn-edit:hover {
    background-color: #2563eb;
}

.btn-delete {
    background-color: #dc2626;
    color: white;
    border: none;
}

.btn-delete:hover {
    background-color: #b91c1c;
}

.btn-print {
    background-color: #6366f1;
    color: white;
    border: none;
}

.btn-print:hover {
    background-color: #4f46e5;
}

.table-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    color: #6b7280;
    font-size: 0.875rem;
}

.pagination {
    margin: 0;
}

.pagination .page-link {
    color: #374151;
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0.75rem;
    margin: 0 0.125rem;
    border-radius: 0.375rem;
}

.pagination .page-link:hover {
    background-color: #f3f4f6;
}

.pagination .page-item.active .page-link {
    background-color: #6366f1;
    border-color: #6366f1;
    color: white;
}

/* Detail Row Styles */
.detail-row {
    display: none;
    background-color: #f9fafb;
}

.detail-row.show {
    display: table-row;
}

.detail-content {
    padding: 1.5rem 2rem;
    border-left: 4px solid #10b981;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 0.875rem;
    color: #1f2937;
    font-weight: 500;
}

.detail-value.highlight {
    color: #6366f1;
    font-weight: 600;
}

.detail-row td {
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
}

.slide-down {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* ============================================
   Landing Page Styles
   ============================================ */

.landing-page {
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Wider containers for landing page - use 90% of viewport up to 1600px */
.landing-page .container {
    max-width: min(90vw, 1600px) !important;
    width: 100%;
    padding-inline: clamp(1rem, 3vw, 2rem);
    margin-inline: auto;
}

/* Hero and feature sections should be even wider */
.landing-page .hero-section .container,
.landing-page section .container {
    max-width: min(92vw, 1600px) !important;
}

/* Ensure rows inside containers use full width */
.landing-page .container .row {
    margin-inline: 0;
    width: 100%;
}

/* Hero H1 - scale to 90% of original to match 90% zoom at 100% */
.landing-page .hero-section h1 {
    font-size: clamp(1.6rem, 3.6vw, 2.7rem) !important;
    line-height: 1.2;
}

/* Scale all landing page content to 90% to match 90% zoom appearance */
.landing-page .hero-section {
    font-size: 90%;
}

.landing-page .hero-section .display-5 {
    font-size: clamp(1.6rem, 3.6vw, 2.7rem);
}

.landing-page .hero-section h2 {
    font-size: clamp(1rem, 2vw, 1.35rem) !important;
}

.landing-page .hero-section p {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
}

.landing-page .hero-section .badge {
    font-size: 0.9rem;
}

.landing-page .hero-section .btn {
    font-size: 0.9rem;
    padding: clamp(0.45rem, 1vw, 0.6rem) clamp(0.9rem, 2vw, 1.2rem);
}

/* Navbar responsive padding for landing page */
.landing-page .navbar {
    padding: clamp(0.75rem, 1.5vw, 1rem) 0;
}

.landing-page .navbar .container-fluid {
    padding-inline: clamp(1rem, 4vw, 6rem);
}

.landing-page .navbar-brand {
    font-size: clamp(1.125rem, 2.25vw, 1.35rem) !important;
    font-weight: 700;
}

.landing-page .nav-link {
    font-size: clamp(0.9rem, 1.8vw, 1.08rem) !important;
}

/* ============================================
   Contact Widget (Dashboard)
   ============================================ */

.contact-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1040;
}

.contact-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0056b3 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.contact-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.contact-fab:active {
    transform: scale(0.95);
}

.contact-fab svg {
    transition: transform 0.3s ease;
}

.contact-widget.active .contact-fab svg {
    transform: rotate(180deg);
}

.contact-panel {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-widget.active .contact-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.contact-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
}

.contact-panel-header h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
}

.contact-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-close:hover {
    background: #f8f9fa;
    color: #212529;
}

.contact-panel-body {
    padding: 20px;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #212529;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.contact-option:hover {
    background: #f8f9fa;
    transform: translateX(4px);
    color: #212529;
}

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

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.contact-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #212529;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .contact-widget {
        bottom: 16px;
        right: 16px;
    }
    
    .contact-panel {
        width: calc(100vw - 32px);
        right: -8px;
    }
    
    .contact-fab {
        width: 48px;
        height: 48px;
    }
}

.landing-page .btn-lg {
    font-size: clamp(0.9rem, 1.8vw, 1.08rem);
    padding: clamp(0.45rem, 1vw, 0.6rem) clamp(0.9rem, 2vw, 1.2rem);
}

.landing-page .min-vh-50 {
    min-height: 50vh;
}

.landing-page .display-4 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    line-height: 1.2;
}

.landing-page .card {
    transition: transform 0.2s ease-in-out;
}

.landing-page .card:hover {
    transform: translateY(-2px);
}

/* Full-bleed sections */
.landing-page .full-bleed {
    width: 100%;
    max-width: 100%;
}

.landing-page footer {
    margin-top: 0;
    margin-bottom: 0;
}

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

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

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

/* ============================================
   Simple UI Styles for Non-Educated Users
   ============================================ */

.simple-ui {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.simple-ui .display-1 {
    font-size: 4rem;
    line-height: 1;
}

.simple-ui .display-3 {
    font-size: 2.5rem;
    line-height: 1.2;
}

.simple-ui .display-4 {
    font-size: 2.2rem;
    line-height: 1.2;
}

.simple-ui .fs-1 {
    font-size: 2.5rem !important;
}

.simple-ui .fs-2 {
    font-size: 2rem !important;
}

.simple-ui .fs-3 {
    font-size: 1.75rem !important;
}

.simple-ui .fs-4 {
    font-size: 1.5rem !important;
}

.simple-ui .fs-5 {
    font-size: 1.25rem !important;
}

.simple-ui .form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1.25rem;
    border-radius: 0.75rem;
    border: 2px solid #dee2e6;
}

.simple-ui .form-control-lg:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.3rem rgba(99, 102, 241, 0.25);
}

.simple-ui .btn-lg {
    padding: 1rem 2rem;
    font-size: 1.25rem;
    border-radius: 0.75rem;
    font-weight: 600;
}

.simple-ui .simple-card {
    border: 3px solid #e9ecef;
    transition: all 0.3s ease;
}

.simple-ui .simple-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

.simple-ui .rounded-4 {
    border-radius: 1rem !important;
}

.simple-ui .bg-opacity-10 {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}

.simple-ui .bg-opacity-10.bg-success {
    background-color: rgba(var(--bs-success-rgb), 0.1) !important;
}

.simple-ui .bg-opacity-10.bg-warning {
    background-color: rgba(var(--bs-warning-rgb), 0.1) !important;
}

.simple-ui .navbar-brand {
    font-size: 2rem !important;
}

.simple-ui .nav-link {
    font-size: 1.25rem !important;
    font-weight: 500;
}

.simple-ui .btn {
    font-weight: 600;
    text-transform: none;
}

.simple-ui .form-text {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 500;
}

.simple-ui .list-unstyled li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.simple-ui .list-unstyled li:last-child {
    border-bottom: none;
}

/* Make everything more touch-friendly */
.simple-ui .btn,
.simple-ui .form-control,
.simple-ui .nav-link {
    min-height: 48px;
}

.simple-ui .btn {
    min-width: 120px;
}

/* High contrast for better readability */
.simple-ui .text-muted {
    color: #495057 !important;
}

.simple-ui .text-dark {
    color: #212529 !important;
}

/* Larger touch targets */
.simple-ui .navbar-toggler {
    padding: 0.75rem;
    font-size: 1.5rem;
}

/* Better spacing for mobile */
@media (max-width: 768px) {
    .simple-ui .display-4 {
        font-size: 1.2rem;
    }
    
    .simple-ui .display-3 {
        font-size: 2rem;
    }
    
    .simple-ui .fs-4 {
        font-size: 1.25rem;
    }
    
    .simple-ui .fs-5 {
        font-size: 1.1rem;
    }
    
    .simple-ui .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1.1rem;
    }
}

/* Payment Logo Styles */
.payment-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* (reverted) removed hero-feature-card and pill overrides */

.payment-logo-large {
    width: 80px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.payment-logo-large:hover {
    transform: scale(1.05);
}

/* Navbar logo sizing */
.navbar-logo {
    height: 32px;
    width: 32px;
}

/* Responsive payment logos */
@media (max-width: 768px) {
    .payment-logo {
        width: 35px;
        height: 35px;
    }
    
    .payment-logo-large {
        width: 70px;
        height: 50px;
    }
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    margin-bottom: 0 !important;
    padding-block: clamp(2rem, 4vw, 3rem);
}

footer .hover-text-white:hover {
    color: #fff !important;
    transition: color 0.3s ease;
}

footer h5, footer h6 {
    color: #fff;
    font-weight: 600;
}

footer .text-muted {
    color: #ffffff !important;
}

/* Normalize all Bootstrap "muted" variants inside footer */
footer .text-white-50,
footer .text-body-secondary,
footer .text-secondary,
footer small,
footer .small {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Ensure Bootstrap CSS variables resolve to white in footer context */
footer {
    --bs-secondary-color: #ffffff;
}

/* Ensure consistent typography color within footer */
footer,
footer p,
footer li,
footer small,
footer span,
footer a {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Normalize any contextual text colors used in footer */
footer .text-primary,
footer .text-success,
footer .text-warning,
footer .text-info,
footer .text-danger,
footer .text-secondary,
footer .text-dark,
footer .text-body {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Link hover stays readable on green background */
footer a:hover {
    color: #ffffff !important;
}

/* Ensure footer content (top section) is left-aligned */
footer .row.g-4 {
    text-align: left;
}

/* Force icon and border colors to match footer text */
footer .bi,
footer i {
    color: rgba(255, 255, 255, 0.9) !important;
}

footer .border,
footer .border-top,
footer .border-bottom,
footer .border-start,
footer .border-end,
footer [class*="border-"] {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

footer .border-secondary {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: #6366f1 !important;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}
