/* =========================================================
   ADMISSION CRM - GLOBAL STYLESHEET
   THEME: ORANGE + VIOLET
   FILE: assets/css/style.css
========================================================= */

/* =========================
   1. ROOT VARIABLES
========================= */
:root {
    --primary-color: #ff7a00;          /* Orange */
    --primary-dark: #e56700;
    --primary-light: #fff3e8;

    --secondary-color: #6f42c1;        /* Violet */
    --secondary-dark: #5a32a3;
    --secondary-light: #f3ecff;

    --accent-color: #ff9f43;

    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;

    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --text-white: #ffffff;

    --bg-body: #f8f9fc;
    --bg-white: #ffffff;
    --bg-light: #f4f6fb;
    --bg-soft: #faf7ff;

    --border-color: #e5e7eb;
    --border-light: #f1f3f6;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 22px;

    --sidebar-width: 260px;
    --topbar-height: 70px;

    --transition: all 0.25s ease-in-out;

    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* =========================
   2. RESET / BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    text-decoration: none;
}

ul {
    list-style: none;
    padding-left: 0;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================
   3. TYPOGRAPHY
========================= */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p {
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.small-text {
    font-size: 0.85rem;
    color: var(--text-light);
}

.text-orange { color: var(--primary-color) !important; }
.text-violet { color: var(--secondary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-muted-custom { color: var(--text-light) !important; }

/* =========================================================
   FINAL SIDEBAR + TOPBAR UI
========================================================= */

/* =========================
   LAYOUT
========================= */
.wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: var(--bg-body);
}

.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: linear-gradient(180deg, #5f2ca5 0%, #6f42c1 40%, #7f4bd2 100%);
    color: #fff;
    z-index: 1100;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
    transition: all 0.28s ease-in-out;
}

.main-content {
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: all 0.28s ease-in-out;
    position: relative;
    z-index: 1;
}

.page-content {
    padding: 24px;
    flex: 1;
    width: 100%;
}

/* =========================
   SIDEBAR BRAND
========================= */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 18px;
    min-height: 72px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(6px);
    z-index: 2;
}

.sidebar-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), #ff9d3b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 6px 16px rgba(255,122,0,0.35);
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.sidebar-brand-text strong {
    font-size: 1rem;
    color: #fff;
    font-weight: 800;
}

.sidebar-brand-text span {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.72);
}

/* =========================
   SIDEBAR MENU
========================= */
.sidebar-menu {
    padding: 14px 12px 24px;
}

.sidebar-menu .menu-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin: 18px 10px 10px;
    letter-spacing: 0.9px;
    font-weight: 800;
}

.menu-item,
.submenu-item {
    margin-bottom: 6px;
}

/* Main menu link */
.menu-link,
.submenu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.22s ease;
    position: relative;
    user-select: none;
}

.menu-link {
    padding: 13px 14px;
    min-height: 48px;
}

.submenu-link {
    padding: 11px 13px;
    min-height: 42px;
}

.menu-left,
.submenu-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.menu-icon {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: rgba(255,255,255,0.88);
    flex-shrink: 0;
}

.menu-text,
.submenu-left span {
    color: rgba(255,255,255,0.92);
    font-weight: 600;
    font-size: 0.94rem;
    white-space: nowrap;
}

/* Main hover / active */
.menu-link:hover,
.menu-item.active > .menu-link,
.menu-item.open > .menu-link {
    background: rgba(255,255,255,0.12);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
    transform: translateX(2px);
}

.menu-item.active > .menu-link .menu-text,
.menu-item.open > .menu-link .menu-text,
.menu-link:hover .menu-text,
.menu-link:hover .menu-icon {
    color: #fff;
}

/* Active left indicator */
.menu-item.active > .menu-link::before,
.menu-item.open > .menu-link::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 0 8px 8px 0;
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(255,122,0,0.45);
}

/* Arrows */
.menu-arrow {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.72);
    transition: transform 0.25s ease, color 0.2s ease;
    flex-shrink: 0;
}

/* MAIN MENU OPEN = DOWN */
.menu-item.open > .menu-link .menu-arrow {
    transform: rotate(90deg);
    color: #fff;
}

/* SUB MENU OPEN = DOWN */
.submenu-item.open > .submenu-link .menu-arrow {
    transform: rotate(90deg);
    color: #fff;
}

/* =========================
   SUBMENU
========================= */
.sidebar-submenu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-left: 10px;
    margin-left: 10px;
    border-left: 1px dashed rgba(255,255,255,0.14);
    transition: max-height 0.35s ease-in-out, opacity 0.25s ease-in-out, margin 0.2s ease;
}

.menu-item.open > .sidebar-submenu {
    max-height: 1000px;
    opacity: 1;
    margin-top: 6px;
    margin-bottom: 8px;
}

.sidebar-submenu .submenu-link {
    color: rgba(255,255,255,0.84);
}

.sidebar-submenu .submenu-link:hover,
.sidebar-submenu .submenu-item.active > .submenu-link,
.sidebar-submenu .submenu-item.open > .submenu-link {
    background: rgba(255,255,255,0.09);
    transform: translateX(2px);
}

.sidebar-submenu .submenu-item.active > .submenu-link {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

/* =========================
   SUB-SUBMENU
========================= */
.sidebar-subsubmenu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-left: 10px;
    margin-left: 12px;
    border-left: 1px dashed rgba(255,255,255,0.12);
    transition: max-height 0.35s ease-in-out, opacity 0.25s ease-in-out;
}

.submenu-item.open > .sidebar-subsubmenu {
    max-height: 700px;
    opacity: 1;
    margin-top: 5px;
}

.sidebar-subsubmenu a {
    display: block;
    padding: 10px 13px;
    border-radius: 12px;
    color: rgba(255,255,255,0.78);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.22s ease;
    margin-bottom: 4px;
}

.sidebar-subsubmenu a:hover,
.sidebar-subsubmenu a.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
    transform: translateX(2px);
}

/* =========================
   COLLAPSED SIDEBAR
========================= */
.sidebar.collapsed {
    width: 84px;
    min-width: 84px;
    max-width: 84px;
}

.sidebar.collapsed .sidebar-brand-text,
.sidebar.collapsed .menu-text,
.sidebar.collapsed .menu-arrow,
.sidebar.collapsed .sidebar-submenu,
.sidebar.collapsed .sidebar-subsubmenu,
.sidebar.collapsed .menu-title {
    display: none !important;
}

.sidebar.collapsed .sidebar-brand {
    justify-content: center;
}

.sidebar.collapsed .menu-link {
    justify-content: center;
    padding: 14px 12px;
}

.sidebar.collapsed .menu-left {
    justify-content: center;
    width: 100%;
    gap: 0;
}

.sidebar.collapsed + .main-content {
    width: calc(100% - 84px);
    margin-left: 84px;
}

/* =========================
   TOPBAR
========================= */
.topbar {
    height: 72px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    position: sticky;
    top: 0;
    z-index: 1050;
    width: 100%;
    box-shadow: 0 2px 14px rgba(0,0,0,0.04);
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-left h4 {
    margin-bottom: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-dark);
}

/* TOGGLE BUTTON */
.menu-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: none;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.22s ease;
    font-size: 1rem;
    position: relative;
    z-index: 1060;
    flex-shrink: 0;
}

.menu-toggle-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-1px);
}

/* Welcome */
.welcome-box {
    text-align: right;
    line-height: 1.2;
}

.welcome-box small {
    display: block;
    color: var(--text-light);
    font-size: 0.76rem;
    margin-bottom: 2px;
}

.welcome-box strong {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 700;
}

/* =========================
   PROFILE DROPDOWN
========================= */
.profile-dropdown {
    position: relative;
    z-index: 1200;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--border-light);
    padding: 6px 10px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
}

.profile-trigger:hover {
    background: var(--secondary-light);
    border-color: rgba(111,66,193,0.18);
}

.profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    box-shadow: 0 5px 12px rgba(111,66,193,0.22);
}

.profile-trigger .dropdown-arrow {
    font-size: 0.8rem;
    color: var(--text-medium);
    transition: transform 0.22s ease;
}

.profile-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown panel */
.profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 230px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(17,24,39,0.14);
    border: 1px solid var(--border-light);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.22s ease;
    z-index: 1201;
}

.profile-dropdown.open .profile-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-menu-header {
    padding: 10px 12px 12px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 8px;
}

.profile-menu-header strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 800;
}

.profile-menu-header small {
    color: var(--text-light);
    font-size: 0.78rem;
}

.profile-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 12px;
    color: var(--text-medium);
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.profile-menu a:hover {
    background: var(--secondary-light);
    color: var(--secondary-color);
}

.profile-menu a.logout-link:hover {
    background: #fdecec;
    color: var(--danger-color);
}

/* =========================
   OVERLAY
========================= */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17,24,39,0.42);
    opacity: 0;
    visibility: hidden;
    transition: all 0.22s ease;
    z-index: 1090;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 991px) {
    .sidebar {
        left: -100%;
    }

    .sidebar.show {
        left: 0;
    }

    .main-content {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .welcome-box {
        display: none;
    }

    .topbar {
        padding: 0 16px;
    }
}

@media (max-width: 767px) {
    .page-content {
        padding: 18px;
    }

    .profile-avatar {
        width: 38px;
        height: 38px;
        font-size: 0.88rem;
    }

    .menu-toggle-btn {
        width: 40px;
        height: 40px;
    }

    .topbar-left h4 {
        font-size: 1rem;
    }
}

/* =========================
   7. FOOTER
========================= */
.footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    padding: 15px 25px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* =========================
   8. PAGE TITLE / BREADCRUMB
========================= */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header .title-area h2 {
    margin-bottom: 4px;
}

.page-header .title-area p {
    margin-bottom: 0;
    color: var(--text-light);
}

/* =========================
   9. CARDS
========================= */
.card-box,
.crm-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    padding: 20px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.card-box:hover,
.crm-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* Dashboard summary cards */
.summary-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 22px;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.summary-card .summary-title {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.summary-card .summary-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0;
}

.summary-card .summary-icon {
    position: absolute;
    right: 18px;
    top: 18px;
    font-size: 2rem;
    opacity: 0.12;
}

.summary-orange {
    border-left: 5px solid var(--primary-color);
}
.summary-violet {
    border-left: 5px solid var(--secondary-color);
}
.summary-success {
    border-left: 5px solid var(--success-color);
}
.summary-danger {
    border-left: 5px solid var(--danger-color);
}

/* =========================
   10. BUTTONS
========================= */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 10px 18px;
    transition: var(--transition);
    border: none;
    box-shadow: none !important;
}

.btn:focus {
    outline: none;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--text-white);
    transform: translateY(-1px);
}

.btn-secondary-custom {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--text-white);
}

.btn-secondary-custom:hover {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
    color: var(--text-white);
    transform: translateY(-1px);
}

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

.btn-outline-orange:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

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

.btn-outline-violet:hover {
    background: var(--secondary-color);
    color: var(--text-white);
}

.btn-success-custom {
    background: var(--success-color);
    color: var(--text-white);
}

.btn-danger-custom {
    background: var(--danger-color);
    color: var(--text-white);
}

.btn-sm-custom {
    padding: 7px 14px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-lg-custom {
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 12px;
}

/* =========================
   11. FORMS
========================= */
.form-section {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-bottom: 25px;
}

.form-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 18px;
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.92rem;
}

.form-control,
.form-select,
textarea,
select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="file"] {
    width: 100%;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus,
textarea:focus,
select:focus,
input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.12);
    outline: none;
}

.form-control::placeholder,
textarea::placeholder {
    color: #9ca3af;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.form-check-input {
    accent-color: var(--primary-color);
    cursor: pointer;
}

.required {
    color: var(--danger-color);
    font-weight: 700;
}

/* Input group custom */
.input-group-text {
    background: var(--secondary-light);
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
    font-weight: 600;
}

/* =========================
   12. SEARCH / FILTER BAR
========================= */
.filter-box {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    padding: 18px;
    margin-bottom: 20px;
}

/* =========================
   13. TABLES
========================= */
.table-responsive {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.table {
    margin-bottom: 0;
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-dark));
    color: var(--text-white);
}

.table thead th {
    padding: 14px 16px;
    font-size: 0.88rem;
    font-weight: 700;
    border: none;
    white-space: nowrap;
    vertical-align: middle;
}

.table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

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

.table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    font-size: 0.92rem;
    color: var(--text-medium);
    white-space: nowrap;
}

.table tbody tr:last-child {
    border-bottom: none;
}

/* DataTables styling */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 7px 10px;
    margin-left: 8px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    margin: 0 2px;
    border: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary-color) !important;
    color: var(--text-white) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--secondary-color) !important;
    color: var(--text-white) !important;
}

/* =========================
   14. BADGES / STATUS
========================= */
.badge-custom {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 50px;
    text-align: center;
}

.badge-new { background: #eaf4ff; color: #0d6efd; }
.badge-contacted { background: #fff4e6; color: #ff7a00; }
.badge-followup { background: #f3ecff; color: var(--secondary-color); }
.badge-interested { background: #eafbf0; color: var(--success-color); }
.badge-not-interested { background: #fdecec; color: var(--danger-color); }
.badge-registration { background: #fff3e8; color: var(--primary-dark); }
.badge-confirmed { background: #eafbf0; color: #198754; }
.badge-cancelled { background: #f3f4f6; color: #6b7280; }

/* =========================
   15. ALERTS
========================= */
.alert-custom {
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    font-weight: 500;
    margin-bottom: 20px;
}

.alert-success-custom {
    background: #eafbf0;
    color: var(--success-color);
    border-left: 5px solid var(--success-color);
}

.alert-danger-custom {
    background: #fdecec;
    color: var(--danger-color);
    border-left: 5px solid var(--danger-color);
}

.alert-warning-custom {
    background: #fff8e1;
    color: #a86d00;
    border-left: 5px solid var(--warning-color);
}

.alert-info-custom {
    background: #e8f8fb;
    color: var(--info-color);
    border-left: 5px solid var(--info-color);
}

/* =========================
   16. LOGIN PAGE
========================= */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
}

.login-card {
    width: 100%;
    max-width: 430px;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 35px 30px;
    border-top: 5px solid var(--primary-color);
}

.login-logo {
    text-align: center;
    margin-bottom: 25px;
}

.login-logo h2 {
    margin-bottom: 8px;
    font-weight: 800;
    color: var(--secondary-color);
}

.login-logo p {
    margin-bottom: 0;
    color: var(--text-light);
}

.login-card .form-control {
    height: 48px;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
    font-size: 0.88rem;
}

/* =========================
   17. PROFILE / DETAIL BLOCKS
========================= */
.profile-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--text-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.profile-header h3,
.profile-header h4,
.profile-header h5,
.profile-header p,
.profile-header small {
    color: var(--text-white);
}

.info-box {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 15px;
}

.info-box label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 5px;
    font-weight: 600;
}

.info-box .value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* =========================
   18. TABS
========================= */
.nav-tabs {
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 20px;
}

.nav-tabs .nav-link {
    border: none;
    color: var(--text-medium);
    font-weight: 600;
    border-radius: 10px 10px 0 0;
    padding: 12px 18px;
}

.nav-tabs .nav-link.active {
    background: var(--secondary-color);
    color: var(--text-white);
}

/* =========================
   19. MODALS
========================= */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-dark));
    color: var(--text-white);
    border-bottom: none;
    padding: 18px 22px;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-title {
    font-weight: 700;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid var(--border-light);
    padding: 18px 22px;
}

/* =========================
   20. DROPDOWNS / MENUS
========================= */
.dropdown-menu {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 10px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--secondary-light);
    color: var(--secondary-color);
}

/* =========================
   21. BREADCRUMB
========================= */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 15px;
}

.breadcrumb-item a {
    color: var(--secondary-color);
    font-weight: 500;
}

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

/* =========================
   22. TIMELINE / FOLLOWUP BLOCK
========================= */
.timeline {
    position: relative;
    padding-left: 25px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 15px 18px;
    box-shadow: var(--shadow-sm);
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 18px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--bg-white);
    box-shadow: var(--shadow-sm);
}

/* =========================
   23. LOADER / EMPTY STATE
========================= */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    opacity: 0.7;
}

/* =========================
   24. UTILITIES
========================= */
.bg-orange-light { background: var(--primary-light) !important; }
.bg-violet-light { background: var(--secondary-light) !important; }
.bg-orange { background: var(--primary-color) !important; color: var(--text-white); }
.bg-violet { background: var(--secondary-color) !important; color: var(--text-white); }

.border-orange { border-color: var(--primary-color) !important; }
.border-violet { border-color: var(--secondary-color) !important; }

.rounded-custom { border-radius: var(--radius-lg) !important; }
.shadow-custom { box-shadow: var(--shadow-md) !important; }

.cursor-pointer { cursor: pointer; }
.w-fit { width: fit-content; }

.section-spacing {
    margin-bottom: 30px;
}

/* =========================
   25. RESPONSIVE
========================= */
@media (max-width: 991px) {
    .sidebar {
        left: -100%;
    }

    .sidebar.show {
        left: 0;
    }

    .main-content {
        margin-left: 0;
    }

    .topbar {
        padding: 0 15px;
    }

    .page-content {
        padding: 18px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .login-card {
        padding: 28px 20px;
    }

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

    .table thead th,
    .table tbody td {
        padding: 12px 10px;
        font-size: 0.85rem;
    }

    .form-section {
        padding: 18px;
    }

    .topbar-left h4 {
        font-size: 1rem;
    }
}


/* =========================================================
   ADMISSION CRM - GLOBAL STYLESHEET
   THEME: ORANGE + VIOLET
   FILE: assets/css/style.css
========================================================= */

/* =========================
   1. ROOT VARIABLES
========================= */
:root {
    --primary-color: #ff7a00;          /* Orange */
    --primary-dark: #e56700;
    --primary-light: #fff3e8;

    --secondary-color: #6f42c1;        /* Violet */
    --secondary-dark: #5a32a3;
    --secondary-light: #f3ecff;

    --accent-color: #ff9f43;

    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;

    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --text-white: #ffffff;

    --bg-body: #f8f9fc;
    --bg-white: #ffffff;
    --bg-light: #f4f6fb;
    --bg-soft: #faf7ff;

    --border-color: #e5e7eb;
    --border-light: #f1f3f6;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 22px;

    --sidebar-width: 260px;
    --topbar-height: 70px;

    --transition: all 0.25s ease-in-out;

    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* =========================
   2. RESET / BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    text-decoration: none;
}

ul {
    list-style: none;
    padding-left: 0;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================
   3. TYPOGRAPHY
========================= */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p {
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.small-text {
    font-size: 0.85rem;
    color: var(--text-light);
}

.text-orange { color: var(--primary-color) !important; }
.text-violet { color: var(--secondary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-muted-custom { color: var(--text-light) !important; }

/* =========================
   4. LAYOUT
========================= */
.wrapper {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.page-content {
    padding: 25px;
    flex: 1;
}

/* =========================
   5. SIDEBAR
========================= */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: linear-gradient(180deg, var(--secondary-color), var(--secondary-dark));
    color: var(--text-white);
    z-index: 999;
    box-shadow: var(--shadow-md);
    overflow-y: auto;
}

.sidebar-brand {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.sidebar-brand span {
    color: var(--primary-color);
}

.sidebar-submenu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

.menu-item.open > .sidebar-submenu {
    max-height: 1000px;
    opacity: 1;
}

.sidebar-subsubmenu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

.submenu-item.open > .sidebar-subsubmenu {
    max-height: 800px;
    opacity: 1;
}

.sidebar-menu .menu-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin: 18px 10px 10px;
    letter-spacing: 1px;
    font-weight: 700;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.9);
    padding: 12px 15px;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    font-size: 0.96rem;
    font-weight: 500;
}

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

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255,255,255,0.12);
    color: var(--text-white);
    transform: translateX(4px);
}

/* =========================
   6. TOPBAR / HEADER
========================= */
.topbar {
    height: var(--topbar-height);
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    position: sticky;
    top: 0;
    z-index: 998;
    border-bottom: 1px solid var(--border-light);
}

.topbar-left h4 {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    padding: 8px 14px;
    border-radius: 50px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.user-info h6 {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.user-info small {
    color: var(--text-light);
    font-size: 0.75rem;
}

.topbar {
    width: 100%;
}

.page-header,
.table-responsive,
.crm-card,
.card-box,
.summary-card,
.form-section,
.filter-box {
    width: 100%;
}

/* =========================
   7. FOOTER
========================= */
.footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    padding: 15px 25px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* =========================
   8. PAGE TITLE / BREADCRUMB
========================= */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header .title-area h2 {
    margin-bottom: 4px;
}

.page-header .title-area p {
    margin-bottom: 0;
    color: var(--text-light);
}

/* =========================
   9. CARDS
========================= */
.card-box,
.crm-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    padding: 20px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.card-box:hover,
.crm-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* Dashboard summary cards */
.summary-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 22px;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.summary-card .summary-title {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.summary-card .summary-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0;
}

.summary-card .summary-icon {
    position: absolute;
    right: 18px;
    top: 18px;
    font-size: 2rem;
    opacity: 0.12;
}

.summary-orange {
    border-left: 5px solid var(--primary-color);
}
.summary-violet {
    border-left: 5px solid var(--secondary-color);
}
.summary-success {
    border-left: 5px solid var(--success-color);
}
.summary-danger {
    border-left: 5px solid var(--danger-color);
}

/* =========================
   10. BUTTONS
========================= */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 10px 18px;
    transition: var(--transition);
    border: none;
    box-shadow: none !important;
}

.btn:focus {
    outline: none;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--text-white);
    transform: translateY(-1px);
}

.btn-secondary-custom {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--text-white);
}

.btn-secondary-custom:hover {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
    color: var(--text-white);
    transform: translateY(-1px);
}

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

.btn-outline-orange:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

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

.btn-outline-violet:hover {
    background: var(--secondary-color);
    color: var(--text-white);
}

.btn-success-custom {
    background: var(--success-color);
    color: var(--text-white);
}

.btn-danger-custom {
    background: var(--danger-color);
    color: var(--text-white);
}

.btn-sm-custom {
    padding: 7px 14px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-lg-custom {
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 12px;
}

/* =========================
   11. FORMS
========================= */
.form-section {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-bottom: 25px;
}

.form-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 18px;
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.92rem;
}

.form-control,
.form-select,
textarea,
select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="file"] {
    width: 100%;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus,
textarea:focus,
select:focus,
input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.12);
    outline: none;
}

.form-control::placeholder,
textarea::placeholder {
    color: #9ca3af;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.form-check-input {
    accent-color: var(--primary-color);
    cursor: pointer;
}

.required {
    color: var(--danger-color);
    font-weight: 700;
}

/* Input group custom */
.input-group-text {
    background: var(--secondary-light);
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
    font-weight: 600;
}

/* =========================
   12. SEARCH / FILTER BAR
========================= */
.filter-box {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    padding: 18px;
    margin-bottom: 20px;
}

/* =========================
   13. TABLES
========================= */
.table-responsive {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);

    /* ✅ FIX START */
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* Optional: smooth scrollbar */
.table-responsive::-webkit-scrollbar {
    height: 6px;
}
.table-responsive::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.table {
    margin-bottom: 0;
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-dark));
    color: var(--text-white);
}

.table thead th {
    padding: 14px 16px;
    font-size: 0.88rem;
    font-weight: 700;
    border: none;
    white-space: nowrap;
    vertical-align: middle;
}

.table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

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

.table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    font-size: 0.92rem;
    color: var(--text-medium);
    white-space: nowrap;
}

.table tbody tr:last-child {
    border-bottom: none;
}

/* DataTables styling */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 7px 10px;
    margin-left: 8px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    margin: 0 2px;
    border: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary-color) !important;
    color: var(--text-white) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--secondary-color) !important;
    color: var(--text-white) !important;
}

/* =========================
   14. BADGES / STATUS
========================= */
.badge-custom {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 50px;
    text-align: center;
}

.badge-new { background: #eaf4ff; color: #0d6efd; }
.badge-contacted { background: #fff4e6; color: #ff7a00; }
.badge-followup { background: #f3ecff; color: var(--secondary-color); }
.badge-interested { background: #eafbf0; color: var(--success-color); }
.badge-not-interested { background: #fdecec; color: var(--danger-color); }
.badge-registration { background: #fff3e8; color: var(--primary-dark); }
.badge-confirmed { background: #eafbf0; color: #198754; }
.badge-cancelled { background: #f3f4f6; color: #6b7280; }

/* =========================
   15. ALERTS
========================= */
.alert-custom {
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    font-weight: 500;
    margin-bottom: 20px;
}

.alert-success-custom {
    background: #eafbf0;
    color: var(--success-color);
    border-left: 5px solid var(--success-color);
}

.alert-danger-custom {
    background: #fdecec;
    color: var(--danger-color);
    border-left: 5px solid var(--danger-color);
}

.alert-warning-custom {
    background: #fff8e1;
    color: #a86d00;
    border-left: 5px solid var(--warning-color);
}

.alert-info-custom {
    background: #e8f8fb;
    color: var(--info-color);
    border-left: 5px solid var(--info-color);
}

/* =========================
   16. LOGIN PAGE
========================= */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
}

.login-card {
    width: 100%;
    max-width: 430px;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 35px 30px;
    border-top: 5px solid var(--primary-color);
}

.login-logo {
    text-align: center;
    margin-bottom: 25px;
}

.login-logo h2 {
    margin-bottom: 8px;
    font-weight: 800;
    color: var(--secondary-color);
}

.login-logo p {
    margin-bottom: 0;
    color: var(--text-light);
}

.login-card .form-control {
    height: 48px;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
    font-size: 0.88rem;
}

/* =========================
   17. PROFILE / DETAIL BLOCKS
========================= */
.profile-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--text-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.profile-header h3,
.profile-header h4,
.profile-header h5,
.profile-header p,
.profile-header small {
    color: var(--text-white);
}

.info-box {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 15px;
}

.info-box label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 5px;
    font-weight: 600;
}

.info-box .value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* =========================
   18. TABS
========================= */
.nav-tabs {
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 20px;
}

.nav-tabs .nav-link {
    border: none;
    color: var(--text-medium);
    font-weight: 600;
    border-radius: 10px 10px 0 0;
    padding: 12px 18px;
}

.nav-tabs .nav-link.active {
    background: var(--secondary-color);
    color: var(--text-white);
}

/* =========================
   19. MODALS
========================= */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-dark));
    color: var(--text-white);
    border-bottom: none;
    padding: 18px 22px;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-title {
    font-weight: 700;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid var(--border-light);
    padding: 18px 22px;
}

/* =========================
   20. DROPDOWNS / MENUS
========================= */
.dropdown-menu {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 10px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--secondary-light);
    color: var(--secondary-color);
}

/* =========================
   21. BREADCRUMB
========================= */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 15px;
}

.breadcrumb-item a {
    color: var(--secondary-color);
    font-weight: 500;
}

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

/* =========================
   22. TIMELINE / FOLLOWUP BLOCK
========================= */
.timeline {
    position: relative;
    padding-left: 25px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 15px 18px;
    box-shadow: var(--shadow-sm);
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 18px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--bg-white);
    box-shadow: var(--shadow-sm);
}

/* =========================
   23. LOADER / EMPTY STATE
========================= */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    opacity: 0.7;
}

/* =========================
   24. UTILITIES
========================= */
.bg-orange-light { background: var(--primary-light) !important; }
.bg-violet-light { background: var(--secondary-light) !important; }
.bg-orange { background: var(--primary-color) !important; color: var(--text-white); }
.bg-violet { background: var(--secondary-color) !important; color: var(--text-white); }

.border-orange { border-color: var(--primary-color) !important; }
.border-violet { border-color: var(--secondary-color) !important; }

.rounded-custom { border-radius: var(--radius-lg) !important; }
.shadow-custom { box-shadow: var(--shadow-md) !important; }

.cursor-pointer { cursor: pointer; }
.w-fit { width: fit-content; }

.section-spacing {
    margin-bottom: 30px;
}

/* =========================
   25. RESPONSIVE
========================= */
@media (max-width: 991px) {
    .sidebar {
        left: -100%;
    }

    .sidebar.show {
        left: 0;
    }

    .main-content {
        margin-left: 0;
    }

    .topbar {
        padding: 0 15px;
    }

    .page-content {
        padding: 18px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .login-card {
        padding: 28px 20px;
    }

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

    .table thead th,
    .table tbody td {
        padding: 12px 10px;
        font-size: 0.85rem;
    }

    .form-section {
        padding: 18px;
    }

    .topbar-left h4 {
        font-size: 1rem;
    }
}

/* =========================
   STATUS BADGES
========================= */
.badge-custom {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.2px;
}

.badge-new {
    background: #eef2ff;
    color: #4f46e5;
}

.badge-hot {
    background: #fff0f0;
    color: #dc2626;
}

.badge-cold {
    background: #eef6ff;
    color: #2563eb;
}

.badge-interested {
    background: #ecfdf3;
    color: #16a34a;
}

.badge-lost {
    background: #f3f4f6;
    color: #6b7280;
}

.badge-registered {
    background: #fff7ed;
    color: #ea580c;
}

/* =========================
   CRM CARD
========================= */
.crm-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 22px rgba(0,0,0,0.04);
    overflow: hidden;
}

.card-header-custom {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(to right, rgba(255,122,0,0.04), rgba(111,66,193,0.05));
}

.card-header-custom h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark);
}

.card-body-custom {
    padding: 20px;
}

/* =========================
   FOLLOW-UP TIMELINE
========================= */
.followup-timeline {
    position: relative;
    padding-left: 18px;
}

.followup-timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, rgba(111,66,193,0.25), rgba(255,122,0,0.18));
}

.followup-item {
    position: relative;
    padding-left: 28px;
    margin-bottom: 24px;
}

.followup-dot {
    position: absolute;
    left: 0;
    top: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 0 4px rgba(255,122,0,0.12);
}

.followup-content {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.04);
}

.followup-content h6 {
    font-weight: 800;
    color: var(--text-dark);
    font-size: 0.95rem;
}