/* ==========================================================================
   Our Cadre — Shared Application Styles
   Warm Minimal Design System (Yepp/calbox-inspired)
   Used by: public website, admin panel, super admin panel
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables — Warm Minimal Palette
   -------------------------------------------------------------------------- */
:root {
    /* Tenant branding: --primary-color is injected by admin/superadmin header.php
       when available; defaults to the hardcoded navy. */
    --oc-primary: var(--primary-color, #1D3557);
    --oc-primary-dark: #152A46;
    --oc-accent: #E63946;
    --oc-accent-dark: #C62F3B;
    --oc-bg: #FFFFFF;
    --oc-bg-warm: #F1FAEE;
    --oc-bg-secondary: #f4f6f9;
    --oc-text: #111827;
    --oc-text-muted: #6B7280;
    --oc-dark: #111827;
    --oc-border: #e9ecef;
    --oc-success: #059669;
    --oc-danger: #DC2626;
    --oc-warning: #D97706;
    --oc-info: #0891B2;

    /* Admin sidebar — navy gradient */
    --oc-sidebar-bg: var(--oc-primary);
    --oc-sidebar-header-bg: transparent;
    --oc-sidebar-border: rgba(255,255,255,0.08);
    --oc-sidebar-text: rgba(255,255,255,0.7);
    --oc-sidebar-text-hover: #FFFFFF;
    --oc-sidebar-active-border: var(--oc-accent);
    --oc-sidebar-width: 260px;

    /* Admin header & sub-header */
    --oc-header-height: 56px;
    --oc-subheader-bg: var(--oc-primary-dark);
    --oc-subheader-height: 50px;

    /* Shadow scale — refined */
    --oc-shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
    --oc-shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --oc-shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

    /* Card featured border */
    --oc-card-featured-width: 3px;
}

body {
    font-family: 'Noto Sans', 'Noto Sans Telugu', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--oc-text);
    background-color: var(--oc-bg);
}

/* --------------------------------------------------------------------------
   Admin / Super Admin — Page Layout
   -------------------------------------------------------------------------- */

#wrapper .container-fluid {
    background-color: transparent;
    padding: 28px !important;
}

/* General cards — cleaner look */
.card {
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    box-shadow: var(--oc-shadow-sm);
}

.card:hover {
    box-shadow: var(--oc-shadow-md);
}

.card-header {
    background-color: var(--oc-bg);
    border-bottom: 1px solid #f0f0f0;
}

/* --------------------------------------------------------------------------
   Login Pages (Admin + Super Admin) — Clean white card on cool gray bg
   -------------------------------------------------------------------------- */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--oc-bg-secondary) 0%, #e8ecf1 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.login-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------------------------------
   Sidebar — Dark navy (Admin + Super Admin)
   -------------------------------------------------------------------------- */
#sidebar {
    width: var(--oc-sidebar-width);
    min-height: 100vh;
    background: linear-gradient(180deg, var(--oc-primary) 0%, var(--oc-primary-dark) 100%);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1040;
    flex-shrink: 0;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

#wrapper .flex-grow-1 {
    margin-left: var(--oc-sidebar-width);
    background-color: var(--oc-bg-secondary);
    min-height: 100vh;
}

.sidebar-header {
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--oc-sidebar-border);
    text-align: center;
}

.sidebar-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0;
}

.sidebar-subtitle {
    color: var(--oc-sidebar-text);
    font-size: 0.75rem;
    display: block;
    margin-top: 0.15rem;
}

.sidebar-nav-label {
    color: rgba(255,255,255,0.35);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 12px 24px 6px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 16px 0;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    color: var(--oc-sidebar-text);
    text-decoration: none;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.sidebar-nav-link i {
    font-size: 18px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-nav-link:hover {
    color: var(--oc-sidebar-text-hover);
    background-color: rgba(255,255,255,0.06);
}

.sidebar-nav-link.active {
    color: var(--oc-sidebar-text-hover);
    background: rgba(230,57,70,0.12);
    border-left-color: var(--oc-accent);
    font-weight: 500;
}

.sidebar-nav-link .badge {
    margin-left: auto;
    font-size: 0.65rem;
}

.sidebar-divider {
    border-top: 1px solid var(--oc-sidebar-border);
    margin: 0.5rem 1rem;
}

/* --------------------------------------------------------------------------
   Admin Top Header
   -------------------------------------------------------------------------- */
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    background-color: var(--oc-bg);
    border-bottom: 1px solid var(--oc-border);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.admin-header-left,
.admin-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-sidebar-toggle {
    color: var(--oc-text);
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    font-size: 1.25rem;
}

/* Search bar */
.admin-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--oc-bg-secondary);
    border-radius: 20px;
    padding: 0.35rem 1rem;
    min-width: 220px;
}

.admin-search i {
    color: var(--oc-text-muted);
    font-size: 0.85rem;
}

.admin-search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.85rem;
    color: var(--oc-text);
    width: 100%;
}

/* Header icon (notifications) */
.admin-header-icon-link {
    color: var(--oc-text-muted);
    font-size: 1.25rem;
    position: relative;
    text-decoration: none;
    padding: 0.25rem;
}

.admin-header-icon-link:hover {
    color: var(--oc-text);
}

.admin-notification-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background: var(--oc-accent);
    color: #fff;
    font-size: 0.6rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Userbox */
.admin-userbox-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--oc-text);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: background-color 0.15s;
}

.admin-userbox-toggle:hover {
    background-color: var(--oc-bg-secondary);
    color: var(--oc-text);
}

.admin-userbox-avatar {
    font-size: 1.5rem;
    color: var(--oc-text-muted);
}

.admin-userbox-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.admin-userbox-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--oc-text);
}

.admin-userbox-role {
    font-size: 0.7rem;
    color: var(--oc-text-muted);
}

.admin-userbox-arrow {
    font-size: 0.65rem;
    color: var(--oc-text-muted);
}

/* --------------------------------------------------------------------------
   Admin Page Sub-header — title + breadcrumbs
   -------------------------------------------------------------------------- */
.admin-subheader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--oc-subheader-height);
    padding: 0 1.5rem;
    background-color: var(--oc-subheader-bg);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.admin-subheader-title {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.admin-breadcrumb {
    font-size: 0.8rem;
}

.admin-breadcrumb .breadcrumb-item a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

.admin-breadcrumb .breadcrumb-item a:hover {
    color: #fff;
}

.admin-breadcrumb .breadcrumb-item.active {
    color: rgba(255,255,255,0.8);
}

.admin-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.3);
}

/* --------------------------------------------------------------------------
   Card Featured — left-border accent stat cards
   -------------------------------------------------------------------------- */
.card-featured {
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    border-left: var(--oc-card-featured-width) solid transparent;
    box-shadow: var(--oc-shadow-sm);
    transition: box-shadow 0.2s;
}

.card-featured:hover {
    box-shadow: var(--oc-shadow-md);
}

.card-featured-primary  { border-left-color: var(--oc-primary); }
.card-featured-success  { border-left-color: var(--oc-success); }
.card-featured-warning  { border-left-color: var(--oc-warning); }
.card-featured-danger   { border-left-color: var(--oc-danger); }
.card-featured-info     { border-left-color: var(--oc-info); }
.card-featured-secondary { border-left-color: var(--oc-text-muted); }

/* Widget Summary inside featured cards */
.widget-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.widget-summary-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background-color: var(--oc-bg-secondary);
    color: var(--oc-primary);
    flex-shrink: 0;
}

.card-featured-primary .widget-summary-icon  { color: var(--oc-primary); }
.card-featured-success .widget-summary-icon  { color: var(--oc-success); }
.card-featured-warning .widget-summary-icon  { color: var(--oc-warning); }
.card-featured-danger .widget-summary-icon   { color: var(--oc-danger); }
.card-featured-info .widget-summary-icon     { color: var(--oc-info); }
.card-featured-secondary .widget-summary-icon { color: var(--oc-text-muted); }

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

.widget-summary-title {
    font-size: 0.8rem;
    color: var(--oc-text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.widget-summary-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--oc-text);
}

/* Card footer link */
.card-footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem;
    font-size: 0.75rem;
    color: var(--oc-text-muted);
    text-decoration: none;
    border-top: 1px solid var(--oc-border);
    transition: color 0.15s;
}

.card-footer-link:hover {
    color: var(--oc-primary);
    background-color: rgba(29,53,87,0.02);
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
#wrapper .table {
    font-size: 0.875rem;
}

#wrapper .table thead th {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--oc-text-muted);
    border-bottom-width: 2px;
    white-space: nowrap;
    padding: 0.75rem;
}

#wrapper .table tbody td {
    padding: 0.75rem;
    vertical-align: middle;
}

#wrapper .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,0.015);
}

.table-hover tbody tr:hover {
    background-color: rgba(29, 53, 87, 0.03);
}

/* Cards — consistent border radius and shadow */
#wrapper .card {
    border-radius: 8px;
    border: none;
    box-shadow: var(--oc-shadow-sm);
}

#wrapper .card-header {
    border-radius: 8px 8px 0 0 !important;
    border-bottom: 1px solid var(--oc-border);
}

#wrapper .card-footer {
    border-radius: 0 0 8px 8px !important;
    border-top: 1px solid var(--oc-border);
}

/* Filter cards */
.card.filter-card {
    border: none;
    border-radius: 8px;
    box-shadow: var(--oc-shadow-sm);
}

/* Data cards */
.card.data-card {
    border: none;
    border-radius: 8px;
    box-shadow: var(--oc-shadow-sm);
}

/* --------------------------------------------------------------------------
   Form Elements
   -------------------------------------------------------------------------- */
.form-label {
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--oc-primary);
    box-shadow: 0 0 0 0.2rem rgba(29, 53, 87, 0.12);
}

/* --------------------------------------------------------------------------
   Buttons — Primary uses navy, accent uses coral for CTAs
   -------------------------------------------------------------------------- */
.btn-primary {
    background-color: var(--oc-primary);
    border-color: var(--oc-primary);
}

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

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

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

/* Accent button — red CTA (CalBox style) */
.btn-accent {
    background-color: var(--oc-accent);
    border: none;
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: var(--oc-accent-dark);
    color: #fff;
}

/* Text link button — white on dark, dark on light */
.btn-text-link {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    font-size: 14px;
    padding: 0.5rem 0;
    text-decoration: none;
    transition: color 0.2s;
}

.btn-text-link:hover {
    color: #fff;
    text-decoration: none;
}

/* Text link in light sections */
.bg-white .btn-text-link,
section:not(.hero-section):not(.cta-section) .btn-text-link {
    color: var(--oc-primary);
}
section:not(.hero-section):not(.cta-section) .btn-text-link:hover {
    color: var(--oc-accent);
}

/* Pagination uses primary color */
.page-item.active .page-link {
    background-color: var(--oc-primary);
    border-color: var(--oc-primary);
}

.page-link {
    color: var(--oc-primary);
}

.page-link:hover {
    color: var(--oc-primary-dark);
}

/* Smaller buttons globally */
.btn {
    font-size: 0.875rem;
    padding: 0.4rem 1rem;
}

.btn-sm {
    font-size: 0.78rem;
    padding: 0.25rem 0.65rem;
}

.btn-lg {
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Avatars
   -------------------------------------------------------------------------- */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   Status Badges (Issues)
   -------------------------------------------------------------------------- */
.status-badge-submitted,
.status-badge-under_review,
.status-badge-in_progress,
.status-badge-resolved,
.status-badge-rejected,
.status-badge-closed,
.priority-badge-low,
.priority-badge-medium,
.priority-badge-high,
.priority-badge-urgent {
    color: #fff;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 6px;
    display: inline-block;
}

.status-badge-submitted { background-color: var(--oc-text-muted); }
.status-badge-under_review { background-color: var(--oc-info); }
.status-badge-in_progress { background-color: var(--oc-warning); }
.status-badge-resolved { background-color: var(--oc-success); }
.status-badge-rejected { background-color: var(--oc-danger); }
.status-badge-closed { background-color: #1F2937; }

/* --------------------------------------------------------------------------
   Priority Badges (Issues)
   -------------------------------------------------------------------------- */
.priority-badge-low { background-color: var(--oc-success); }
.priority-badge-medium { background-color: var(--oc-warning); }
.priority-badge-high { background-color: #EA580C; }
.priority-badge-urgent { background-color: var(--oc-danger); }

/* --------------------------------------------------------------------------
   Tenant Status (Super Admin)
   -------------------------------------------------------------------------- */
.tenant-status-active { color: var(--oc-success); }
.tenant-status-inactive { color: var(--oc-danger); }

/* --------------------------------------------------------------------------
   Plan Badges (Super Admin)
   -------------------------------------------------------------------------- */
.badge-plan-trial,
.badge-plan-basic,
.badge-plan-premium,
.badge-plan-enterprise {
    color: #fff;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

.badge-plan-trial { background-color: var(--oc-text-muted); }
.badge-plan-basic { background-color: var(--oc-primary); }
.badge-plan-premium { background-color: #7C3AED; }
.badge-plan-enterprise { background-color: #EA580C; }

/* ==========================================================================
   PUBLIC WEBSITE — Warm Minimal
   ========================================================================== */

/* --------------------------------------------------------------------------
   Public — Top Utility Bar
   -------------------------------------------------------------------------- */
.oc-topbar {
    background-color: var(--oc-primary);
    color: rgba(255,255,255,0.75);
    font-size: 0.75rem;
    padding: 0.4rem 0;
}

.oc-topbar a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.15s;
}

.oc-topbar a:hover {
    color: #fff;
}

/* --------------------------------------------------------------------------
   Public — Navbar — Navy background with white text (CalBox style)
   -------------------------------------------------------------------------- */
.oc-navbar {
    background-color: var(--oc-primary);
    padding: 14px 0;
    box-shadow: none;
}

.oc-navbar .navbar-brand {
    font-size: 1.15rem;
}

.oc-navbar .nav-link {
    font-weight: 500;
    padding: 0.5rem 1.15rem;
    color: rgba(255,255,255,0.7) !important;
    transition: color 0.2s;
    font-size: 14px;
}

.oc-navbar .nav-link:hover {
    color: #fff !important;
}

.oc-navbar .nav-link.active {
    color: #fff !important;
}

.oc-navbar .navbar-nav {
    align-items: center;
}

.oc-navbar .navbar-toggler {
    color: #fff;
    border: none;
}

.oc-navbar .navbar-toggler i {
    color: #fff !important;
}

/* --------------------------------------------------------------------------
   Public — Hero Section — Navy gradient with white text (CalBox style)
   -------------------------------------------------------------------------- */
.hero-section {
    background: linear-gradient(135deg, var(--oc-primary) 0%, #2a4a7f 100%);
    color: #fff;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    height: 80px;
    background: #fff;
    border-radius: 50% 50% 0 0 / 100%;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #fff;
    position: relative;
    z-index: 1;
    line-height: 1.15;
}

.hero-section h1 span {
    color: var(--oc-accent);
}

.hero-section .lead {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

/* --------------------------------------------------------------------------
   Public — Section Titles
   -------------------------------------------------------------------------- */
.section-title {
    font-weight: 700;
    color: var(--oc-text);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   Public — Feature Boxes
   -------------------------------------------------------------------------- */
.feature-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    box-shadow: var(--oc-shadow-sm);
    transition: box-shadow 0.2s;
    height: 100%;
}

.feature-box:hover {
    box-shadow: var(--oc-shadow-md);
}

.feature-box-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background-color: rgba(29,53,87,0.08);
    color: var(--oc-primary);
    flex-shrink: 0;
}

.feature-box-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.35rem;
    color: var(--oc-primary);
}

.feature-box-text {
    font-size: 0.9rem;
    color: var(--oc-text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Legacy feature cards */
.oc-card {
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    box-shadow: var(--oc-shadow-sm);
    transition: box-shadow 0.2s ease;
    height: 100%;
    overflow: hidden;
}

.oc-card:hover {
    box-shadow: var(--oc-shadow-md);
}

.oc-card .card-body {
    padding: 1.5rem;
}

.oc-card .card-title {
    font-weight: 600;
    color: var(--oc-primary);
}

.oc-card .card-text {
    color: var(--oc-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: rgba(29,53,87,0.08);
    color: var(--oc-primary);
    font-size: 1.75rem;
}

/* --------------------------------------------------------------------------
   Public — How It Works Steps
   -------------------------------------------------------------------------- */
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--oc-accent);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Public — Role Cards
   -------------------------------------------------------------------------- */
.role-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    border: 1px solid #f0f0f0;
    box-shadow: var(--oc-shadow-sm);
    transition: box-shadow 0.2s;
}

.role-card:hover {
    box-shadow: var(--oc-shadow-md);
}

.role-card i {
    font-size: 1.75rem;
    color: var(--oc-accent);
    display: block;
    margin-bottom: 0.5rem;
}

.role-card h6 {
    font-weight: 600;
    color: var(--oc-primary);
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

.role-card small {
    color: var(--oc-text-muted);
    font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   Public — CTA Section — Warm background
   -------------------------------------------------------------------------- */
.cta-section {
    background: var(--oc-primary);
    color: #fff;
    padding: 70px 0;
    text-align: center;
}

.cta-section h2,
.cta-section p {
    color: #fff;
}

.cta-section p {
    opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Public — Footer
   -------------------------------------------------------------------------- */
.oc-footer {
    background: linear-gradient(180deg, var(--oc-primary) 0%, var(--oc-primary-dark) 100%);
    color: #fff;
    padding: 3rem 0 2rem;
}

.oc-footer a:hover {
    color: rgba(255,255,255,0.9) !important;
}

.oc-footer h5 {
    font-size: 1.05rem;
}

.oc-footer .list-unstyled a,
.footer-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.oc-footer .list-unstyled a:hover,
.footer-link:hover {
    color: #fff;
}

/* --------------------------------------------------------------------------
   Public — Footer Copyright
   -------------------------------------------------------------------------- */
.oc-footer-copyright {
    background-color: rgba(0,0,0,0.15);
    padding: 1rem 0;
}

.oc-footer-copyright p {
    color: rgba(255,255,255,0.5);
}

.oc-footer-copyright-nav {
    display: flex;
    gap: 1.5rem;
}

.oc-footer-copyright-nav a {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.15s;
}

.oc-footer-copyright-nav a:hover {
    color: #fff;
}

/* --------------------------------------------------------------------------
   Public — Contact info cards
   -------------------------------------------------------------------------- */
.contact-icon-circle {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(29,53,87,0.08);
    color: var(--oc-primary);
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Login — Toast style alerts
   -------------------------------------------------------------------------- */
.login-alert {
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
}

.login-alert-warning {
    background-color: #FEF3C7;
    color: #92400E;
}

.login-alert-danger {
    background-color: #FEE2E2;
    color: #991B1B;
}

.login-alert-success {
    background-color: #D1FAE5;
    color: #065F46;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 991px) {
    /* Sidebar slides off-screen on mobile */
    #sidebar {
        transform: translateX(-100%);
    }

    #sidebar.show {
        transform: translateX(0);
    }

    #wrapper .flex-grow-1 {
        margin-left: 0;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1035;
    }

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

    .admin-subheader {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem 1rem;
        gap: 0.25rem;
        min-height: auto;
    }

    .admin-subheader-title {
        font-size: 0.9rem;
    }

    #wrapper .container-fluid {
        padding: 16px !important;
    }
}

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

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .cta-section {
        padding: 50px 0;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .widget-summary-value {
        font-size: 1.5rem;
    }

    .feature-box {
        padding: 1rem;
    }

    .feature-box-icon {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
    }

    .admin-search {
        min-width: 150px;
    }
}

/* Action icon buttons in tables/cards */
.table .btn-link i.bi,
.card-footer .btn-link i.bi {
    font-size: 1rem;
}

/* --------------------------------------------------------------------------
   DataTables — CalBox-style clean look
   -------------------------------------------------------------------------- */
.dataTables_wrapper {
    padding: 0;
}

.dataTables_wrapper > .row {
    margin: 0;
    padding: 12px 16px;
}

.dataTables_wrapper > .row:first-child {
    border-bottom: 1px solid #f0f0f0;
}

.dataTables_wrapper > .row:last-child {
    border-top: 1px solid #f0f0f0;
}

.dataTables_wrapper .dataTables_length select {
    display: inline-block;
    width: auto;
    margin: 0 0.5rem;
    font-size: 13px;
}

.dataTables_wrapper .dataTables_length label {
    font-size: 13px;
}

.dataTables_wrapper .dataTables_filter input {
    display: inline-block;
    width: auto;
    margin-left: 0.5rem;
    font-size: 13px;
}

.dataTables_wrapper .dataTables_filter label {
    font-size: 13px;
}

.dataTables_wrapper .dataTables_info {
    font-size: 13px;
    padding-top: 0.25rem;
}

.dataTables_wrapper .dataTables_paginate .pagination {
    margin-bottom: 0;
    justify-content: flex-end;
}

.dataTables_wrapper .dataTables_paginate .page-link {
    font-size: 13px;
    padding: 4px 10px;
}

.dataTables_wrapper .dataTables_processing {
    background: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
}

/* --------------------------------------------------------------------------
   Table — CalBox-style overrides
   -------------------------------------------------------------------------- */

/* Table font size */
.table { font-size: 14px; }

/* Compact action buttons — outline style, square */
.btn-action {
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

/* Badge font size in tables */
.table .badge { font-size: 11px; }

/* Filter card — smaller form elements */
.filter-card .form-label { font-size: 13px; }
.filter-card .form-select,
.filter-card .form-control { font-size: 13px; }
