﻿:root {
    --primary-color: #0d6efd;
}

body {
    background-color: #f4f6f9;
    font-family: "Inter", sans-serif;
    padding-top: 56px; /* Only navbar height initially */
    transition: padding-top 0.25s ease;
}

/*START Dashboard */

.dashboard-card {
    border: none;
    border-radius: 12px;
    color: white;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .dashboard-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

.card-icon {
    font-size: 28px;
    opacity: 0.8;
}

.card-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}

.card-count {
    font-size: 28px;
    font-weight: 700;
}

.bg-blue {
    background: linear-gradient(135deg, #007bff, #0a58ca);
}

.bg-teal {
    background: linear-gradient(135deg, #20c997, #0d9488);
}

.bg-pink {
    background: linear-gradient(135deg, #f87171, #dc3545);
}

.bg-orange {
    background: linear-gradient(135deg, #fd7e14, #e67e22);
}

.bg-green {
    background: linear-gradient(135deg, #198754, #157347);
}

.bg-purple {
    background: linear-gradient(135deg, #6f42c1, #8b5cf6);
}


/* === Table Styling === */
.dashboard .table-container {
    margin-top: 40px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dashboard .table thead {
    background-color: #e74c3c;
    color: white;
}

.dashboard .table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.dashboard .table tbody tr:hover {
    background-color: #f1f1f1;
}

.dashboard .table-responsive {
    border-radius: 8px;
    overflow-x: auto;
}

.dashboard th, .dashboard td {
    /*white-space: nowrap;*/
    vertical-align: middle;
}

.dashboard .table-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

/*END Dashboard */

a {
    cursor: pointer;
    text-decoration: none;
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    height: 76px;
    z-index:1000000;
}

.navbar-brand {
    font-weight: 600;
    line-height: 1.2;
}

    .navbar-brand small {
        display: block;
        font-size: 0.8rem;
        opacity: 0.9;
    }

/* ===== FIXED MENU ===== */
.fixed-menu-container {
    position: fixed;
    top: 76px;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,.1);
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    z-index: 2050;
    overflow: visible;
    display: none; /* hidden until opened */
}

    .fixed-menu-container.show {
        display: block;
    }

.mega-inner {
    /*overflow-x: auto;*/
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.mega-nav .nav-link {
    color: #212529 !important;
    font-weight: 600;
    padding: 0.8rem 1rem;
}

    .mega-nav .nav-link:hover {
        color: var(--primary-color) !important;
    }

.dropdown-menu {
    color: #000;
    min-width: 12rem;
    border-radius: 0.5rem;
    z-index: 9999;
    overflow: visible;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

/* ===== SUBMENU ===== */
.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-left: 0.25rem;
        margin-top: -0.1rem;
        display: none;
    }

        .dropdown-submenu > .dropdown-menu.show {
            display: block;
        }

@media (max-width: 992px) {
    .dropdown-menu {
        position: static;
        width: 100%;
    }

    .dropdown-submenu > .dropdown-menu {
        position: static;
        padding-left: 1rem;
    }
}

/* ===== FORM SECTION ===== */
.form-section-header {
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-tabs .nav-link {
    border: none;
    color: #495057;
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
    transition: 0.3s;
    margin-right: 5px;
}

    .nav-tabs .nav-link.active {
        background-color: var(--primary-color);
        color: #fff;
        font-weight: 600;
    }


/* Case Tabs Styling (Original) */
.nav-tabs .nav-link {
    border: none;
    color: #495057;
    padding: 12px 10px;
    border-radius: 8px 8px 0 0;
    transition: background 0.3s, color 0.3s;
    margin-right: 5px;
    font-size:15px;
}

    .nav-tabs .nav-link.active {
        background-color: var(--primary-color);
        color: white;
        font-weight: 600;
        border-bottom: none !important;
    }

.form-section-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.collapse {
    visibility: unset !important;
}

/* for mandatory */

.edu-mandatory::after
{
    content:' *';
    color:red;
}

/* custom feildset and legend only */

/* 🔹 Custom fieldset style */
.edu-fieldset {
    border: 2px solid #0d6efd; /* Primary blue border */
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: #f9fbff; /* Light background */
    position: relative;
}

/* 🔹 Custom legend style */
.edu-legend {
    font-size: 1rem;
    font-weight: 600;
    color: #0d6efd; /* Same as border color */
    padding: 0 10px;
    background: #f9fbff; /* Match fieldset bg */
    border-left: 4px solid #0d6efd;
    border-radius: 4px;
    line-height: 1.5;
    margin-left: 10px;
}

/* Optional: subtle shadow for better look */
.edu-fieldset {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* For dark themes (optional) */
@media (prefers-color-scheme: dark) {
    .edu-fieldset {
        background-color: #1a1d21;
        border-color: #3b82f6;
    }

    .edu-legend {
        color: #3b82f6;
        background-color: #1a1d21;
    }
}

/*==START ERROR MESSAGE ==*/

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 4px;
    font-weight: 500;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/*==END ERROR MESSAGE ==*/

/*==START for search dropdown ==*/

/* Match Bootstrap select height and border */
.select2-container .select2-selection--single {
    height: 38px !important; /* Same as .form-select */
    border: 1px solid var(--bs-body-color) !important; /* Bootstrap border color */
    border-radius: 0.375rem !important; /* Rounded corners */
    display: flex !important;
    align-items: center !important;
    padding-left: 0.75rem !important; /* Same padding as Bootstrap select */
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* Text (selected option) */
.select2-selection__rendered {
    color: var(--bs-body-color) !important; /* Bootstrap form text color */
    line-height: 1.5 !important;
    font-size: 1rem !important;
}

/* Placeholder */
.select2-selection__placeholder {
    color: var(--bs-body-color) !important; /* Bootstrap placeholder gray */
}

/* Dropdown arrow alignment */
.select2-selection__arrow {
    height: 38px !important;
    right: 8px !important;
    top: 0 !important;
    display: flex;
    align-items: center;
}

/* Dropdown (expanded list) border and font */
.select2-dropdown {
    border: 1px solid var(--bs-body-color) !important;
    font-size: 1rem;
}

/* Focus style same as Bootstrap */
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--bs-body-color) !important; /* Bootstrap blue */
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
    outline: 0 !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--bs-body-color) !important; /* Green */
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25) !important;
}

/*==END for search dropdown ==*/

/*START Table*/

.edu-table{
    font-size:12px;
}

/*END Table*/

/* =================== CALENDAR ====================== */

/* Sidebar */
.sidebar {
    background: #003366;
    height: 100vh;
    padding: 15px;
    color: #fff;
}

    .sidebar .btn {
        width: 100%;
        text-align: left;
        margin-bottom: 8px;
        color: #003366;
        background: #fff;
        font-weight: 500;
        border: none;
        border-radius: 6px;
    }

        .sidebar .btn:hover {
            background: #f1f1f1;
        }

    .sidebar .profile {
        text-align: center;
        margin-bottom: 20px;
    }

        .sidebar .profile i {
            font-size: 48px;
            color: #fff;
        }

/* Header */
.header {
    background-color: #0059b3;
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border-radius: 12px;
}

    .header h4 {
        margin: 0;
        font-weight: bold;
    }

.app-number {
    font-size: 1.1rem;
    background: #fff;
    color: #0059b3;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Main Content */
.content {
    padding: 25px;
}

.card-custom {
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    background: #fff;
    padding: 20px;
}

/* Calendar Box */
.calendar-box {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    overflow: hidden; /* 👈 removes scrolling */
}

    .calendar-box:hover {
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

/* Compact FullCalendar */
#calendar {
    max-width: 100%;
}

.fc {
    font-size: 12px;
}

    .fc .fc-scrollgrid {
        overflow: hidden !important; /* 👈 ensures no scrollbars */
    }

    .fc .fc-scroller {
        overflow: hidden !important; /* 👈 ensures no scrollbars */
    }

    .fc .fc-toolbar {
        display: none !important;
    }

.fc-daygrid-day-frame {
    cursor: pointer;
    transition: background-color 0.2s ease;
    padding: 2px !important;
}

    .fc-daygrid-day-frame:hover {
        background-color: #f1f9ff;
    }

.fc-day-today {
    background: #e6f7ff !important;
    border: 1px solid #0d6efd !important;
}

.fc-event {
    border-radius: 6px !important;
    font-size: 11px;
    text-align: center;
    border: none !important;
}

/* Month Header */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e9f2ff;
    padding: 6px 10px;
    border-bottom: 1px solid #dee2e6;
}

    .calendar-header h6 {
        margin: 0;
        color: #003366;
        font-weight: bold;
    }