/* 
 * OJT Management System - Gray Theme
 * Locked to Gray Theme Only
 */

:root {

    /* --- CTA Section global overrides --- */
    /* Enlarges the CTA block and forces white text for better contrast */
    .cta-section {
        padding: 100px 0;
        text-align: center;
        /* keep the page-defined background if present; only enforce layout and color */
        color: #ffffff;
    }

    .cta-section h2,
    .cta-section .display-5,
    .cta-section .fw-bold {
        color: #ffffff !important;
        text-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    }

    .cta-section p.lead {
        color: rgba(255, 255, 255, 0.92) !important;
        font-size: 1.05rem;
        margin-bottom: 1.25rem;
    }

    .cta-section .btn-custom,
    .cta-section .btn {
        padding: 14px 34px;
        border-radius: 40px;
        font-weight: 800;
    }

    @media (max-width: 768px) {
        .cta-section {
            padding: 60px 0;
        }

        .cta-section .btn-custom,
        .cta-section .btn {
            padding: 12px 24px;
        }
    }

    /* Gray Theme - Primary (Brighter) */
    --gray-primary: #6b7280;
    --gray-secondary: #9ca3af;
    --gray-light: #d1d5db;
    --gray-medium: #9ca3af;
    --gray-dark: #6b7280;
    --gray-darker: #9ca3af;
    --gray-darkest: #d1d5db;

    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Theme Variables - Gray Theme (Brighter/Locked) */
    /* Sidebar: black -> gray gradient for admin theme */
    --sidebar-bg: linear-gradient(135deg, #0b0b0b 0%, #4b5563 100%);
    --sidebar-text: #ffffff;
    --sidebar-hover: rgba(255, 255, 255, 0.04);
    /* Table header (keep green independent from sidebar) */
    --table-header-bg: linear-gradient(90deg, #2ecc71 0%, #27ae60 100%);
    --body-bg: var(--gray-50);
    --body-text: #000000;
    --card-bg: #ffffff;
    --card-text: #000000;
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --navbar-text: #000000;

    /* Accent Colors (for status, buttons, etc.) */
    --accent-primary: #2ecc71;
    --accent-success: #10b981;
    --accent-danger: #dc2626;
    --accent-warning: #f59e0b;
    --accent-info: #3b82f6;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--body-bg);
    color: var(--body-text);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Sidebar Styles */
.sidebar {
    min-height: 100vh;
    background: var(--sidebar-bg);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.sidebar .nav-link {
    color: var(--sidebar-text);
    padding: 12px 20px;
    border-radius: 10px;
    margin: 5px 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: var(--sidebar-text);
    background: var(--sidebar-hover);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

.sidebar h4 {
    color: var(--sidebar-text);
}

/* Main Content */
.main-content {
    background: var(--body-bg);
    min-height: 100vh;
    color: var(--body-text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Cards */
.card,
.stat-card,
.log-card,
.filter-card,
.stats-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    border: none;
    transition: all 0.3s ease;
    color: var(--card-text);
}

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

/* Buttons */
.btn-primary,
.btn-emerald {
    background: var(--accent-primary);
    border: none;
    color: rgba(0, 0, 0, 0.85);
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-emerald:hover {
    background: var(--gray-medium);
    color: rgba(0, 0, 0, 0.9);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background: var(--accent-success);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: #059669;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-danger,
.btn-blood {
    background: var(--accent-danger);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-danger:hover,
.btn-blood:hover {
    background: #b91c1c;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-warning,
.btn-orange {
    background: var(--accent-warning);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-warning:hover,
.btn-orange:hover {
    background: #d97706;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Form Controls */
.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid var(--gray-200);
    padding: 12px 15px;
    transition: all 0.3s ease;
    background: var(--card-bg);
    color: var(--body-text);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 0.2rem rgba(75, 85, 99, 0.25);
    background: var(--card-bg);
    color: var(--body-text);
}

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-approved {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-rejected {
    background: rgba(220, 38, 38, 0.15);
    color: #991b1b;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.status-success {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-failed {
    background: rgba(220, 38, 38, 0.15);
    color: #991b1b;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.status-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-ongoing {
    background: rgba(59, 130, 246, 0.15);
    color: #1e40af;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-completed {
    background: rgba(107, 114, 128, 0.15);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.status-draft {
    background: rgba(107, 114, 128, 0.15);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.status-submitted {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-active {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-inactive {
    background: rgba(220, 38, 38, 0.15);
    color: #991b1b;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

/* Hero Section */
.hero-section {
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

/* Feature Cards */
.feature-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    height: 100%;
    border-top: 4px solid var(--accent-primary);
    color: var(--card-text);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-primary);
}

/* Statistics */
.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-primary);
    margin-bottom: 0;
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* Navigation */
.navbar-custom {
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--gray-200);
    color: var(--navbar-text);
    transition: all 0.3s ease;
    z-index: 1100;
    padding-top: 4px;
    /* tightened vertical padding to make navbar visually smaller */
    padding-bottom: 4px;
    min-height: 48px;
    /* compact navbar height */
    overflow: visible;
    /* allow brand image to overflow the navbar */
    /* ensure navbar stays above page pseudo-elements */
}

/* Make navbar brand image larger and responsive */
.navbar-brand img {
    height: 220px;
    /* slightly reduced so overflow is less extreme */
    max-height: 220px;
    object-fit: contain;
}

@media (max-width: 992px) {
    .navbar-brand img {
        height: 180px;
        /* tablet */
        max-height: 180px;
    }
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 120px;
        /* mobile */
        max-height: 120px;
    }
}

/* Home-specific adjustments: flush brand to the left and lift it slightly */
body.home-hero .navbar .container {
    padding-left: 0;
    /* remove left padding so logo can sit flush to the stripe edge */
}

body.home-hero .navbar-brand {
    margin-left: 0;
}

body.home-hero .navbar-brand img {
    margin-top: -10px;
    /* slight lift so logo aligns with stripe */
}

/* Position brand absolutely on home so it can sit flush to left edge */
/* On the home landing, hide the inline brand image and let the white stripe background show the logo */
body.home-hero .navbar {
    position: relative;
}

body.home-hero .navbar-brand {
    position: static;
    left: auto;
    top: auto;
    padding-left: 0;
}

/* hide the inline brand image on the landing so the stripe background is the visible logo */
body.home-hero .navbar-brand img {
    display: none !important;
}

/* restore normal flow for the navbar links on the home landing */
body.home-hero .navbar .navbar-collapse {
    margin-left: 0;
}

@media (max-width: 992px) {
    body.home-hero .navbar .navbar-collapse {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    body.home-hero .navbar .navbar-collapse {
        margin-left: 0;
    }
}

.navbar-brand {
    font-weight: bold;
    color: var(--navbar-text) !important;
}

.navbar-nav .nav-link {
    color: var(--navbar-text);
}

/* Footer */
.footer {
    background: var(--gray-800);
    color: white;
    padding: 50px 0 30px;
}


/* Login Page */
.login-container,
.register-container,
.forgot-container,
.reset-container {
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-100) 50%, var(--gray-50) 100%);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid var(--gray-300);
}

.login-header,
.register-header,
.forgot-header,
.reset-header {
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 2rem;
    text-align: center;
}

.btn-login {
    background: var(--sidebar-bg);
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    color: var(--sidebar-text);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--sidebar-text);
}

/* Log Cards */
.log-card.success {
    border-left: 4px solid var(--accent-success);
}

.log-card.failed {
    border-left: 4px solid var(--accent-danger);
}

.log-card.warning {
    border-left: 4px solid var(--accent-warning);
}

/* Alerts */
.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #047857;
}

.alert-danger {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #991b1b;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #b45309;
}


/* Tables */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--card-bg);
    color: var(--body-text);
}

.table thead th {
    background: var(--table-header-bg) !important;
    color: #ffffff;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.table tbody {
    background: var(--card-bg);
    color: var(--body-text);
}

.table tbody tr {
    color: var(--body-text);
}

.table tbody tr:hover {
    background: var(--sidebar-hover);
}


/* Pagination */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.pagination .page-link:hover {
    background: var(--accent-primary);
    color: rgba(0, 0, 0, 0.85);
    border-color: var(--accent-primary);
}

.pagination .page-item.active .page-link {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: rgba(0, 0, 0, 0.85);
}

/* Text Visibility */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--body-text);
}

p,
span,
div,
label {
    color: var(--body-text);
}

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


/* Input Groups */
.input-group-text {
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    color: var(--body-text);
}


/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }

    .hero-section {
        padding: 60px 0;
    }

    .feature-card {
        margin-bottom: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(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.4), transparent);
    animation: loading 1.5s infinite;
}

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

    100% {
        left: 100%;
    }
}

/* --- Auth / Login specific overrides (apply only when body has class 'auth-page') --- */

body.auth-page,
html.body-auth {
    height: 100%;
}

body.auth-page {
    /* Strong dark gradient background for auth pages */
    background: linear-gradient(180deg, #5b5b5b 0%, #0a0a0a 85%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #e6e6e6;
}

/* large faint watermark / seal on the right for auth pages */
body.auth-page::after {
    content: '';
    position: absolute;
    right: -8%;
    top: -5%;
    width: 75%;
    height: 110%;
    background-image: url("../images/logo.png");
    background-repeat: no-repeat;
    background-position: center right;
    background-size: contain;
    opacity: 0.06;
    filter: grayscale(100%);
    pointer-events: none;
    z-index: 0;
}

/* subtle vignette to darken edges */
body.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center right, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0.65) 60%);
    pointer-events: none;
    z-index: 0;
}

/* keep main container above the watermark on auth pages */
.auth-page .container,
.auth-page .login-container {
    position: relative;
    z-index: 2;
}

/* Full-width white stripe at top to sit behind the logo (auth pages only) */
/* (Intentionally left blank - auth page top stripe handled via page-specific markup if needed) */

/* login card style matching screenshot */
.login-container {
    background: rgba(0, 0, 0, 0.78);
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.75);
    border: none;
    padding: 0;
}

.login-header {
    background: rgba(0, 0, 0, 0.95);
    color: #fff;
    padding: 6px 18px;
    /* further tightened vertical padding */
    text-align: center;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

.login-header h2 {
    margin: 0 0 4px 0;
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
}

.login-header p {
    margin: 0 0 6px 0;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
}

.login-form {
    padding: 6px 30px 16px 30px;
    /* reduce top padding so fields sit closer to header */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.45) 100%);
    border-radius: 0 0 12px 12px;
}

.login-form h3,
.login-form .login-title {
    color: #ffffff;
    font-size: 18px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

/* large rounded input that appears as beige pill in the screenshot */
.login-form .form-control {
    background: #bfb4af;
    /* beige/pale taupe */
    border: none;
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: none;
    color: #111;
    font-weight: 600;
}

.login-form .input-group-text {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
}

.login-form .form-label {
    color: #ffffff;
    font-weight: 600;
}

/* Nudge email / password fields up slightly (login + register) */
.login-form .mb-3,
.register-form .mb-3,
.register-container .mb-3 {
    margin-top: 4px;
    margin-bottom: 6px;
}

.login-form .form-label {
    margin-bottom: 6px;
}

.btn-login {
    background: #bfb4af;
    color: #111;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.login-icon,
.login-icon i {
    display: none !important;
}

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

/* make login column narrower on wide screens to match screenshot */
@media (min-width: 992px) {
    .col-lg-5 {
        max-width: 460px;
    }
}

/* Compact registration form adjustments to fit on a single page */
.register-container {
    /* keep wide on large screens */
    max-width: 1000px;
    width: 100%;
}

.register-container .login-header {
    padding: 8px 12px;

    /* Stats: make 'System Statistics' heading and subtitle black */
    .stats-section h2,
    .stats-section p.lead,
    body.home-hero .stats-section h2,
    body.home-hero .stats-section p.lead {
        color: #000000 !important;
    }

    /* High-specificity override: ensure any earlier white rules (text-shadow/colour) do not apply */
    body.home-hero .stats-section .container .col-lg-8.mx-auto.text-center.mb-5 h2.display-5.fw-bold,
    .stats-section .container .col-lg-8.mx-auto.text-center.mb-5 h2.display-5.fw-bold {
        color: #000000 !important;
        text-shadow: none !important;
    }

    body.home-hero .stats-section .container .col-lg-8.mx-auto.text-center.mb-5 p.lead,
    .stats-section .container .col-lg-8.mx-auto.text-center.mb-5 p.lead {
        color: #000000 !important;
        text-shadow: none !important;
    }
}

.register-container .login-form {
    padding: 8px 12px 10px 12px;
}

.register-container .form-group,
.register-container .mb-3 {
    margin-bottom: 6px;
}

.register-container .form-control {
    padding: 6px 10px;
    font-size: 13px;
    height: 30px;
    /* make inputs shorter */
}

.register-container .btn-login {
    padding: 8px 12px;
    font-size: 14px;
}

/* tighten the two-column spacing inside registration rows */
.register-container .row>[class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
}

/* smaller registration headings */
.register-container .login-header h2 {
    font-size: 18px;
    line-height: 1.05;
}

.register-container .login-header p {
    font-size: 11px;
    margin-top: 2px;
    /* registration subtitle should be black per request */
    color: #000 !important;
}

/* reduce vertical spacing for labels and help text */
.register-container label,
.register-container .form-label {
    margin-bottom: 4px;
    font-size: 12px;
}

/* ensure register layout stays responsive */
@media (max-width: 991px) {
    .register-container {
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }

    .register-container .row>[class*="col-"] {
        padding-left: 6px;
        padding-right: 6px;
    }
}

/* --- Home hero (desktop) - mimic previous dark hero with top white stripe and large watermark --- */
.home-hero {
    position: relative;
    min-height: 70vh;
    /* reduce vertical space overall */
    display: block;
    background: linear-gradient(180deg, #5b5b5b 0%, #0a0a0a 85%);
    color: #fff;
}

.home-hero .hero-section {
    /* pulled up so it sits flush with the white stripe/navbar */
    padding: 40px 0 30px 0;
    /* reduce top spacing so content sits closer to stripe */
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    /* home-only overlay: black at 50% opacity behind hero content */
    background: rgba(0, 0, 0, 0.5);
}

.home-hero .hero-section h1 {
    color: #fff;
    font-size: 46px;
    line-height: 1.1;
    font-weight: 800;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.home-hero .hero-section p.lead {
    color: rgba(255, 255, 255, 0.85);
}

.home-hero .d-flex .btn-light,
.home-hero .d-flex .btn-outline-light {
    border-radius: 30px;
    padding: 12px 28px;
    font-weight: 700;
}

/* large faint watermark/seal on right for home hero */
.home-hero::after {
    content: '';
    position: absolute;
    right: -6%;
    top: 8%;
    width: 70%;
    height: 85%;
    background-image: url('../images/logo.png');
    background-repeat: no-repeat;
    background-position: center right;
    background-size: contain;
    opacity: 0.06;
    filter: grayscale(100%);
    pointer-events: none;
    z-index: 0;
}

/* white stripe with HEADER.png at top (mimic previous look) */
.home-hero::before {
    content: '';
    position: absolute;
    /* make stripe part of hero so it scrolls away */
    left: 0;
    top: 0;
    width: 100%;
    /* match the navbar height so there's no visible gap */
    height: 80px;
    /* shorter stripe to reduce vertical whitespace */
    background: #ffffff;
    /* image moved to the navbar so stripe remains plain white */
    z-index: 0;
    /* keep stripe behind the navbar to avoid a double-navbar appearance */
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Place HEADER.png inside the white navbar on the home landing */
body.home-hero .navbar-custom {
    /* reduced white navbar size with HEADER.png; keep subtle nudge */
    background: #ffffff url('../images/HEADER.png') no-repeat -11px -70px / auto 240px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    z-index: 1200;
    /* ensure navbar sits above hero stripe */
    padding-top: 8px;
    padding-bottom: 8px;
    min-height: 80px;
}

@media (max-width: 992px) {
    body.home-hero .navbar-custom {
        background-position: 10px 8px;
        background-size: auto 180px;
        padding-top: 8px;
        padding-bottom: 8px;
        min-height: 76px;
    }
}

@media (max-width: 768px) {
    body.home-hero .navbar-custom {
        background-position: 8px 6px;
        background-size: auto 120px;
        padding-top: 6px;
        padding-bottom: 6px;
        min-height: 64px;
    }
}

/* ensure page content sits above the stripe */
.home-hero .container {
    position: relative;
    z-index: 2;
}

@media (max-width: 991px) {
    .home-hero::before {
        background-position: left center;
        background-size: auto 90px;
        height: 90px;
    }

    @media (max-width: 768px) {
        .home-hero::before {
            background-position: left center;
            background-size: auto 80px;
            height: 80px;
        }
    }

    .home-hero .hero-section h1 {
        font-size: 30px;
    }
}

/* --- Features: force white heading and adjust card spacing --- */
/* Make Key Features heading and lead white on home and features pages */
.features-section h2,
.feature-section h2,
body.home-hero h2.display-5 {
    color: #ffffff !important;
}

.features-section p.lead,
.feature-section p.lead,
body.home-hero p.lead {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Add horizontal gutters and vertical spacing for feature cards so boxes have clear gaps */
.features-section .row>[class*="col-"],
.feature-section .row>[class*="col-"],
body.home-hero .py-5 .row>[class*="col-"] {
    padding-left: 14px;
    padding-right: 14px;
    margin-bottom: 22px;
}

/* Ensure cards themselves don't double-margin; column padding handles spacing */
.features-section .feature-card,
.feature-section .feature-card,
body.home-hero .feature-card {
    margin-bottom: 0;
    padding: 28px;
    border-radius: 12px;
}

@media (max-width: 768px) {

    .features-section .row>[class*="col-"],
    .feature-section .row>[class*="col-"],
    body.home-hero .py-5 .row>[class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
        margin-bottom: 16px;
    }

    .features-section .feature-card,
    .feature-section .feature-card,
    body.home-hero .feature-card {
        padding: 20px;
    }
}

/* Page-scoped sticky sidebar for admin and profile pages.
   Use `.admin-layout` or `.profile-layout` on the page container to enable.
   Keeps the sidebar visually identical but makes it sticky while allowing
   main content to scroll. Mobile falls back to normal flow under 768px. */
.admin-layout .sidebar,
.profile-layout .sidebar {
    position: -webkit-sticky;
    /* Safari */
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding-top: 1rem;
}

@media (max-width: 768px) {

    .admin-layout .sidebar,
    .profile-layout .sidebar {
        position: static;
        height: auto;
        overflow: visible;
    }
}

/* Company layout sticky sidebar (page-scoped) */
.company-layout .sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding-top: 1rem;
}

@media (max-width: 768px) {
    .company-layout .sidebar {
        position: static;
        height: auto;
        overflow: visible;
    }
}

/* Company Card Styles */
.company-card {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
}

.company-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.08);
}

.company-card h5 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--body-text);
}

.company-card .text-muted {
    color: var(--gray-500);
}

.company-card .status-badge {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.company-card .linked-account {
    margin-top: 8px;
    font-size: 0.95rem;
    color: var(--gray-600);
}

.company-card .btn-group .btn {
    border-radius: 10px;
    padding: 8px 10px;
    min-width: 38px;
}

.company-card .btn-sm.btn-info {
    background: var(--accent-info);
    color: #fff;
    border: none;
}

.company-card .btn-sm.btn-danger {
    background: var(--accent-danger);
    color: #fff;
    border: none;
}

.company-card .btn-outline-primary {
    border-radius: 10px;
}

/* Small tweaks for modal select options readability */
.modal-body .form-select option[disabled] {
    color: var(--gray-400);
}

@media (max-width: 768px) {
    .company-card {
        min-height: 200px;
        padding: 18px;
    }
}