:root {
    --primary: #187b73;
    --body-color: #f5f6fa;
    --secondary: #fe9149;
    --bg-white: #ffffff;
    --primary-light: #1f9b91;
    --primary-dark: #0f5f58;
    --secondary-light: #ffab6f;
    --secondary-dark: #e3742f;
    --text-color: #ffffff;
    --bg-color: #0b1f1d;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-blur: blur(12px);
}

body {
    background: var();
    font-family: Inter, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}

*::-webkit-scrollbar {
    width: 2px;
    height: 2px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
            var(--primary),
            var(--primary-dark));
    border-radius: 5px;
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,
            var(--primary-light),
            var(--primary));
}

.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--primary);
    color: #fff;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transition: transform .35s ease, box-shadow .35s ease;
    overflow-y: auto;
}

.sidebar-logo {
    padding: 15px 12px;
    flex-shrink: 0;
}

.sidebar-logo img {
    max-width: 60%;
    max-height: 80%;
}

.sidebar-menu {
    flex: 1;
    /* takes remaining height */
    overflow-y: auto;
    /* allow bottom overflow */
    overflow-x: hidden;
    padding-bottom: 20px;
}

/* smooth scrollbar */
.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .3);
    border-radius: 6px;
}

.sidebar.closed {
    transform: translateX(-260px);
}


.sidebar h4 {
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .04);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.sidebar a {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--bg-white);
    text-decoration: none;
    font-size: 15px;
    position: relative;
    transition: all .25s ease;
}

.sidebar a i {
    width: 22px;
    text-align: center;
    font-size: 16px;
}


.sidebar a:hover,
.sidebar a.active {
    background: var(--secondary);
    color: #fff;
    box-shadow: inset 4px 0 0 #fff;
}


.sidebar a:hover::after,
.sidebar a.active::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: .18;
    pointer-events: none;
}

.submenu {
    width: 100%;
}

.submenu-toggle {
    cursor: pointer;
}

.submenu-toggle .arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform .3s ease;
}

.submenu-items {
    max-height: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, .05);
    transition: max-height .35s ease;
}

.submenu-items a {
    padding: 12px 20px 12px 54px;
    font-size: 14px;
}

.submenu.open .submenu-items {
    max-height: 500px;
}

.submenu.open .arrow {
    transform: rotate(90deg);
}

.sidebar-bottom {
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, .15);
    flex-shrink: 0;
}

.sidebar-bottom a {
    background: rgba(255, 255, 255, .15);
    border-radius: 10px;
    justify-content: center;
    font-weight: 600;
}

.sidebar-bottom a.active {
    background: #fff;
    color: var(--primary);
    box-shadow: none;
}

/* ===== Main ===== */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    transition: margin-left .35s ease, transform .35s ease;
}

.main-content.full {
    margin-left: 0;
}

/* ===== Topbar ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Toggle button */
#toggleBtn {
    font-size: 20px;
    color: var(--primary);
    background: var(--bg-white);
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#toggleBtn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ===== Icons ===== */
.icon-btn {
    font-size: 22px;
    margin-left: 16px;
    position: relative;
    cursor: pointer;
    color: #334155;
    transition: color 0.3s ease, transform 0.2s ease;
}

.icon-btn:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.notify-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* Profile Dropdown Avatar */
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    transition: transform 0.2s ease;
}

.dropdown-toggle:hover .avatar {
    transform: scale(1.05);
}

.username {
    font-weight: 500;
    color: #334155;
}

/* Topbar Select Input */
.topbar select#selectedsession {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background-color: #f8fafc;
    font-size: 14px;
    color: #334155;
    outline: none;
    transition: all 0.2s ease;
    width: 130px;
}

/* Hover effect */
.topbar select#selectedsession:hover {
    border-color: var(--primary);
    box-shadow: 0 0 6px rgba(24, 123, 115, 0.25);
}

/* Focus effect */
.topbar select#selectedsession:focus {
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(24, 123, 115, 0.35);
}

/* Optional: add consistent spacing in topbar */
.topbar .form-label {
    font-size: 14px;
    margin-bottom: 0;
    color: #334155;
    font-weight: 500;
}

.topbar .form-group {
    margin: 0;
}

/* Dropdown Menu */
.dropdown-menu {
    min-width: 200px;
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    border: none;
}

.dropdown-item {
    padding: 10px 16px;
    font-size: 14px;
    color: #334155;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--primary);
    color: #fff;
}

.dropdown-item.text-danger:hover {
    background-color: #f87171;
    color: #fff;
}

/* ===== Cards ===== */
.stat-card {
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
    background: #fff;
}

/* ===== Swiper ===== */
.swiper {
    height: 220px;
}

.swiper-slide {
    border-radius: 20px;
    padding: 25px;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #22d3ee);
}

/* ===== Overlay ===== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: none;
    z-index: 1040;
}

/* ===== Mobile ===== */
@media(max-width:768px) {
    .sidebar {
        transform: translateX(-260px);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .main-content.push {
        transform: translateX(240px);
    }

    .overlay.show {
        display: block;
    }

    .topbar .form-label {
        display: none;
    }

    .topbar #toggleBtn {
        margin-left: 10px;
    }

    .username {
        display: none !important;
    }
}

.login-container {
    max-width: 1000px;
    height: 90vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Left (blue) section */
.login-left {
    background: linear-gradient(135deg, VAR(--PRIMARY), #536DFE);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px;
}

.login-left h1 {
    font-size: 2.8rem;
    font-weight: 700;
}

.login-left p {
    font-size: 1.1rem;
    color: #dbe2ff;
    margin-top: 10px;
}

.login-right {
    background-color: #fff;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-label {
    font-weight: 600;
}

.btn-primary {
    background-color: VAR(--PRIMARY);
    border: none;
    font-size: 1.1rem;
    padding: 12px;
    border-radius: 8px;
}

.btn-primary:hover {
    background-color: #1e40ff;
}

.text-primary {
    color: VAR(--PRIMARY) !important;
}

@media (max-width: 768px) {
    .login-left {
        display: none;
    }

    .login-right {
        padding: 40px 30px;
    }
}


.frmbox {
    box-sizing: border-box;
    width: 100%;
    /* uses available width */
    /* won't grow beyond this */
    margin: 24px auto;
    /* center horizontally, give vertical space */
    padding: 0px 20px 20px 20px;
    /* inner spacing */
    /* border-radius: 12px; */
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease;
}

.select2-container .select2-selection--single {
    height: calc(2.6rem + 2px);
    padding: 0.4rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #ffffff, #f9fafb);
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #111827;
    font-size: 0.95rem;
    font-weight: 500;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    transition: transform 0.2s ease;
}

.select2-container--open .select2-selection__arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* --- Hover & Focus States --- */
.select2-container--default .select2-selection--single:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.15);
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* --- Dropdown List --- */
.select2-dropdown {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    background-color: #fff;
    padding: 0.25rem 0;
    animation: fadeIn 0.15s ease-in-out;
}

.select2-results__option {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    color: #374151;
    transition: background 0.2s ease, color 0.2s ease;
}

.select2-results__option--highlighted {
    background-color: var(--primary);
    color: #fff;
    border-radius: 0.35rem;
}

/* --- Multiple Select --- */
.select2-container .select2-selection--multiple {
    min-height: calc(2.6rem + 2px);
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    background: linear-gradient(180deg, #ffffff, #f9fafb);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--primary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    padding: 0.25rem 0.6rem;
    margin: 0.2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 5px rgba(13, 110, 253, 0.25);
    transition: background 0.2s ease;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice:hover {
    background-color: var(--primary);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #fff;
    margin-right: 0.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    opacity: 0.8;
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* **********************************
Reset CSS
************************************** */

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}


/* HTML5 display-role reset for older browsers */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1.5;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}


/********************************
 Typography Style
******************************** */

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1 {
    font-size: 36px;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 26px;
}

h4 {
    font-size: 22px;
}

h5 {
    font-size: 18px;
}

h6 {
    font-size: 16px;
}

p {
    font-size: 15px;
}

a {
    text-decoration: none;
    font-size: 15px;
}

* {
    margin-bottom: 0;
}


/* *******************************
message-area
******************************** */

.message-area {
    height: 100vh;
    overflow: hidden;
    padding: 30px 0;
    background: #f5f5f5;
}

.chat-area {
    position: relative;
    width: 100%;
    background-color: #fff;
    border-radius: 0.3rem;
    height: 90vh;
    overflow: hidden;
    min-height: calc(100% - 1rem);
}

.chatlist {
    outline: 0;
    height: 100%;
    overflow: hidden;
    width: 300px;
    float: left;
    padding: 15px;
}

.chat-area .modal-content {
    border: none;
    border-radius: 0;
    outline: 0;
    height: 100%;
}

.chat-area .modal-dialog-scrollable {
    height: 100% !important;
}

.chatbox {
    width: auto;
    overflow: hidden;
    height: 100%;
    border-left: 1px solid #ccc;
}

.chatbox .modal-dialog,
.chatlist .modal-dialog {
    max-width: 100%;
    margin: 0;
}

.msg-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-area .form-control {
    display: block;
    width: 80%;
    padding: 0.375rem 0.75rem;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #222;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ccc;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.chat-area .form-control:focus {
    outline: 0;
    box-shadow: inherit;
}

a.add img {
    height: 36px;
}

.chat-area .nav-tabs {
    border-bottom: 1px solid #dee2e6;
    align-items: center;
    justify-content: space-between;
    flex-wrap: inherit;
}

.chat-area .nav-tabs .nav-item {
    width: 100%;
}

.chat-area .nav-tabs .nav-link {
    width: 100%;
    color: #180660;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-transform: capitalize;
    margin-top: 5px;
    margin-bottom: -1px;
    background: 0 0;
    border: 1px solid transparent;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.chat-area .nav-tabs .nav-item.show .nav-link,
.chat-area .nav-tabs .nav-link.active {
    color: #222;
    background-color: #fff;
    border-color: transparent transparent #000;
}

.chat-area .nav-tabs .nav-link:focus,
.chat-area .nav-tabs .nav-link:hover {
    border-color: transparent transparent #000;
    isolation: isolate;
}

.chat-list h3 {
    color: #222;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    text-transform: capitalize;
    margin-bottom: 0;
}

.chat-list p {
    color: #343434;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    text-transform: capitalize;
    margin-bottom: 0;
}

.chat-list a.d-flex {
    margin-bottom: 15px;
    position: relative;
    text-decoration: none;
}

.chat-list .active {
    display: block;
    content: '';
    clear: both;
    position: absolute;
    bottom: 3px;
    left: 34px;
    height: 12px;
    width: 12px;
    background: #00DB75;
    border-radius: 50%;
    border: 2px solid #fff;
}

.msg-head h3 {
    color: #222;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0;
}

.msg-head p {
    color: #343434;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    text-transform: capitalize;
    margin-bottom: 0;
}

.msg-head {
    padding: 15px;
    border-bottom: 1px solid #ccc;
}

.moreoption {
    display: flex;
    align-items: center;
    justify-content: end;
}

.moreoption .navbar {
    padding: 0;
}

.moreoption li .nav-link {
    color: #222;
    font-size: 16px;
}

.moreoption .dropdown-toggle::after {
    display: none;
}

.moreoption .dropdown-menu[data-bs-popper] {
    top: 100%;
    left: auto;
    right: 0;
    margin-top: 0.125rem;
}

.msg-body ul {
    overflow: hidden;
}

.msg-body ul li {
    list-style: none;
    margin: 15px 0;
}

.msg-body ul li.sender {
    display: block;
    width: 100%;
    position: relative;
}

.msg-body ul li.sender:before {
    display: block;
    clear: both;
    content: '';
    position: absolute;
    top: -6px;
    left: -7px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 12px 15px 12px;
    border-color: transparent transparent #f5f5f5 transparent;
    -webkit-transform: rotate(-37deg);
    -ms-transform: rotate(-37deg);
    transform: rotate(-37deg);
}

.msg-body ul li.sender p {
    color: #000;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    padding: 15px;
    background: #f5f5f5;
    display: inline-block;
    border-bottom-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    margin-bottom: 0;
}

.msg-body ul li.sender p b {
    display: block;
    color: #180660;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.msg-body ul li.repaly {
    display: block;
    width: 100%;
    text-align: right;
    position: relative;
}

.msg-body ul li.repaly:before {
    display: block;
    clear: both;
    content: '';
    position: absolute;
    bottom: 15px;
    right: -7px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 12px 15px 12px;
    border-color: transparent transparent #4b7bec transparent;
    -webkit-transform: rotate(37deg);
    -ms-transform: rotate(37deg);
    transform: rotate(37deg);
}

.msg-body ul li.repaly p {
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    padding: 15px;
    background: #4b7bec;
    display: inline-block;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    margin-bottom: 0;
}

.msg-body ul li.repaly p b {
    display: block;
    color: #061061;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.msg-body ul li.repaly:after {
    display: block;
    content: '';
    clear: both;
}

.time {
    display: block;
    color: #000;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 400;
}

li.repaly .time {
    margin-right: 20px;
}

.divider {
    position: relative;
    z-index: 1;
    text-align: center;
}

.msg-body h6 {
    text-align: center;
    font-weight: normal;
    font-size: 14px;
    line-height: 1.5;
    color: #222;
    background: #fff;
    display: inline-block;
    padding: 0 5px;
    margin-bottom: 0;
}

.divider:after {
    display: block;
    content: '';
    clear: both;
    position: absolute;
    top: 12px;
    left: 0;
    border-top: 1px solid #EBEBEB;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.send-box {
    padding: 15px;
    border-top: 1px solid #ccc;
}

.send-box form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.send-box .form-control {
    display: block;
    width: 85%;
    padding: 0.375rem 0.75rem;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #222;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ccc;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.send-box button {
    border: none;
    background: #3867d6;
    padding: 0.375rem 5px;
    color: #fff;
    border-radius: 0.25rem;
    font-size: 14px;
    font-weight: 400;
    width: 24%;
    margin-left: 1%;
}

.send-box button i {
    margin-right: 5px;
}

.send-btns .button-wrapper {
    position: relative;
    width: 125px;
    height: auto;
    text-align: left;
    margin: 0 auto;
    display: block;
    background: #F6F7FA;
    border-radius: 3px;
    padding: 5px 15px;
    float: left;
    margin-right: 5px;
    margin-bottom: 5px;
    overflow: hidden;
}

.send-btns .button-wrapper span.label {
    position: relative;
    z-index: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 100%;
    cursor: pointer;
    color: #343945;
    font-weight: 400;
    text-transform: capitalize;
    font-size: 13px;
}

#upload {
    display: inline-block;
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.send-btns .attach .form-control {
    display: inline-block;
    width: 120px;
    height: auto;
    padding: 5px 8px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    color: #343945;
    background-color: #F6F7FA;
    background-clip: padding-box;
    border: 1px solid #F6F7FA;
    border-radius: 3px;
    margin-bottom: 5px;
}

.send-btns .button-wrapper span.label img {
    margin-right: 5px;
}

.button-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    text-align: center;
    margin: 0 auto;
}

button:focus {
    outline: 0;
}

.add-apoint {
    display: inline-block;
    margin-left: 5px;
}

.add-apoint a {
    text-decoration: none;
    background: #F6F7FA;
    border-radius: 8px;
    padding: 8px 8px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
    color: #343945;
}

.add-apoint a svg {
    margin-right: 5px;
}

.chat-icon {
    display: none;
}

.closess i {
    display: none;
}



@media (max-width: 767px) {
    .chat-icon {
        display: block;
        margin-right: 5px;
    }

    .chatlist {
        width: 100%;
    }

    .chatbox {
        width: 100%;
        position: absolute;
        left: 1000px;
        right: 0;
        background: #fff;
        transition: all 0.5s ease;
        border-left: none;
    }

    .showbox {
        left: 0 !important;
        transition: all 0.5s ease;
    }

    .msg-head h3 {
        font-size: 14px;
    }

    .msg-head p {
        font-size: 12px;
    }

    .msg-head .flex-shrink-0 img {
        height: 30px;
    }

    .send-box button {
        width: 28%;
    }

    .send-box .form-control {
        width: 70%;
    }

    .chat-list h3 {
        font-size: 14px;
    }

    .chat-list p {
        font-size: 12px;
    }

    .msg-body ul li.sender p {
        font-size: 13px;
        padding: 8px;
        border-bottom-left-radius: 6px;
        border-top-right-radius: 6px;
        border-bottom-right-radius: 6px;
    }

    .msg-body ul li.repaly p {
        font-size: 13px;
        padding: 8px;
        border-top-left-radius: 6px;
        border-top-right-radius: 6px;
        border-bottom-left-radius: 6px;
    }
}

.custom-multiselect-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 400px;
}

.custom-multiselect-display {
    border: 2px solid #007bff;
    border-radius: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-height: 45px;
    align-items: center;
}

.custom-multiselect-display span {
    background: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
}

.custom-multiselect-display::after {
    content: "▼";
    margin-left: auto;
    color: #007bff;
}

.custom-multiselect-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #007bff;
    border-radius: 8px;
    margin-top: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.custom-multiselect-search {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 8px 10px;
    outline: none;
}

.custom-multiselect-option {
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.custom-multiselect-option:hover {
    background: #007bff;
    color: white;
}

.preview-img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
}


.selectgroup {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.selectgroup-item input:checked+.selectgroup-button {
    background-color: var(--primary);
    color: #fff;
}

.selectgroup-button {
    border: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
}

.selectgroup-button:hover {
    background-color: #e9ecef;
}

.shadow {
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
}

.card-dashboard {
    transition: all 0.3s ease-in-out;
    border-radius: 1rem;
    cursor: default;
    overflow: hidden;
    border-left: 5px solid #4a6cf7;
    /* Default left border color (can be changed dynamically) */
}

.card-dashboard:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* Custom shadow class */
.shadow {
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
}

.shadow2 {
    box-shadow: rgba(0, 0, 0, 0.00) 0px 0px 0px 1px;
}

.icon-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.bg-secondary {
    background-color: #6c757d !important;
    border-left-color: #6c757d;
}

.bg-success {
    background-color: #28a745 !important;
    border-left-color: #28a745;
}

.bg-warning {
    background-color: #ffc107 !important;
    border-left-color: #ffc107;
}

.bg-danger {
    background-color: #dc3545 !important;
    border-left-color: #dc3545;
}

.bg-dark {
    background-color: #343a40 !important;
    border-left-color: #343a40;
}

.bg-info {
    background-color: #17a2b8 !important;
    border-left-color: #17a2b8;
}

.card h6 {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.card h4 {
    font-size: 1.4rem;
}

.btn-round {
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Optional: dynamic left border based on card type */
.card-dashboard[data-border-color] {
    border-left-width: 5px;
    border-left-style: solid;
}

.swal-modal {
    border-radius: 20px !important;
    padding: 25px !important;
    justify-content: center;
}

.swal-size-md .swal-modal {
    width: 380px !important;
}

.swal-size-lg .swal-modal {
    width: 480px !important;
}

.swal-size-xl .swal-modal {
    width: 600px !important;
}

#logout {
    cursor: pointer;
}

.swal-btn-confirm,
.swal-btn-cancel {
    padding: 10px 25px !important;
    font-size: 16px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    transition: 0.3s ease-in-out;
}

.swal-btn-confirm {
    background: #4caf50 !important;
    color: white !important;
}

.swal-btn-confirm:hover {
    background: #45a049 !important;
}

.swal-btn-cancel {
    background: #f44336 !important;
    color: white !important;
}

.swal-btn-cancel:hover {
    background: #d63028 !important;
}


.swal-footer {
    text-align: center !important;
}

.swal-footer .swal-button-container {
    display: inline-block !important;
}

.swal-size-md .swal-icon img,
.swal-size-lg .swal-icon img,
.swal-size-xl .swal-icon img,
.swal-icon--warning__body,
.swal-icon--warning__dot {
    transform: scale(1.2);
}

.payment-group {
    display: none;
    padding: 15px;
    background: #f8f9fc;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timetable-rows {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

/* Row Card */
.timetable-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 15px;
    border-radius: 10px;
    gap: 5px;
    /* removed box-shadow animation */
}

/* Day Label */
.day-label {
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #e5e7eb;
}

/* Drop Area */
.subject-dropzone {
    min-height: 80px;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    /* stack vertically */
    gap: 8px;
}

/* Dropzone Hover (subtle change only) */
.subject-dropzone:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

/* Subject Box */
.subject-item {
    background: #2563eb;
    color: white;
    padding: 8px 14px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
    font-size: 14px;
    /* removed transform & box-shadow animation */
}

.subject-item small {
    font-size: 11px;
    opacity: 0.9;
}

/* Dragging state */
.subject-item.dragging {
    opacity: 0.4;
}

/* Remove hover/active animations */
.subject-item:hover,
.subject-item:active {
    transform: none;
    box-shadow: none;
    cursor: grab;
}

.sub-box {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.offcanvas {
    background: #fff;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    padding: 20px;
    transition: all .35s ease;
}

.offcanvas-header {
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 12px;
    margin-bottom: 10px;
}

.offcanvas-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.offcanvas .btn-close {
    filter: invert(0.4);
    transition: .2s;
}

.offcanvas .btn-close:hover {
    filter: invert(0.7);
}

.offcanvas-start,
.offcanvas-end {
    width: 420px !important;
    max-width: 90%;
    border-radius: 0 5px 5px 0;
}

.offcanvas-end {
    border-radius: 5px 0 0 5px;
}

.offcanvas-top {
    height: auto !important;
    max-height: 80vh;
    border-radius: 0 0 5px 5px;
}

.offcanvas-bottom {
    height: auto !important;
    max-height: 85vh;
    border-radius: 5px 5px 0 0;
}

.offcanvas-backdrop.show {
    opacity: 0.6 !important;
    backdrop-filter: blur(5px);
}

.offcanvas form .form-label {
    font-weight: 500;
    color: #333;
}

.offcanvas form .form-control,
.offcanvas form .form-select {
    border-radius: 8px;
    padding: 8px 10px;
    border: 1px solid #dcdcdc;
    transition: .2s;
}

.offcanvas form .form-control:focus,
.offcanvas form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0px rgba(74, 118, 240, 0.25);
}

.offcanvas .btn-primary {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
}


.password-wrapper {
    position: relative;
}

.password-wrapper .show-password {
    position: absolute;
    right: 15px;
    top: 68%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
    font-size: 18px;
}

.password-wrapper .show-password:hover {
    color: #333;
}

.password-wrapper .password-input {
    padding-right: 45px;
    /* space for icon */
}

/* Tabs container (all .nav-tabs) */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
    position: relative;
}

/* Individual tab (all .nav-link inside .nav-tabs) */
.nav-tabs .nav-link {
    color: #495057;
    font-weight: 500;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    transition: all 0.3s ease, transform 0.2s ease;
    position: relative;
}

/* Active tab */
.nav-tabs .nav-link.active {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary) var(--primary) #fff;
    z-index: 1;
}

/* Hover effect with scale animation */
.nav-tabs .nav-link:hover {
    color: var(--primary);
    background-color: #e9f0ff;
    transform: translateY(-2px);
}

/* Tab underline animation */
.nav-tabs::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
    /* Active underline */
    border-radius: 2px;
}

/* Tab content (all .tab-content) with fade animation */
.tab-content {
    padding: 10px;
    background: #fff;
    position: relative;
    overflow: hidden;
}

/* Smooth fade/slide animation for tab panes */
.tab-pane {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.1s ease-in-out;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

.tab-pane.show.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

/* Responsive for small screens */
@media (max-width: 576px) {
    .nav-tabs .nav-link {
        padding: 8px 12px;
        font-size: 14px;
    }
}


.modal-dialog {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

.modal.fade .modal-dialog {
    transform: translateY(-20px);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: translateY(0);
}

.modal-content {
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.modal-header {
    background: #f5f6fa;
    border-bottom: 1px solid #e5e5e5;
    padding: 1rem 1.25rem;
}


.modal-header .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-header .btn-close {
    filter: brightness(0);
}

.modal-body {
    padding: 1.25rem 1.5rem;
    max-height: 65vh;
    overflow-y: auto;
}

.modal-footer {
    border-top: 1px solid #e5e5e5;
    padding: 0.75rem 1.25rem;
    justify-content: flex-start;
}

.modal-footer .btn {
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
}

.modal-backdrop.show {
    opacity: 0.5;
    backdrop-filter: blur(2px);
}

@media (max-width: 576px) {
    .modal-dialog {
        padding: 0 10px;
    }

    .modal-content {
        border-radius: 8px !important;
    }
}

.student-profile {
    max-width: 100%;
    margin: 0;
    background: #fff;
    overflow: hidden;
}

/* HEADER */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--primary);
    color: #fff;
}

.profile-header img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
}

.header-info h2 {
    margin: 0;
    font-size: 22px;
}

.header-info p {
    margin: 4px 0;
    font-size: 14px;
}

/* SECTIONS */
.profile-section {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.profile-section h3 {
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 16px;
    border-left: 4px solid var(--primary);
    padding-left: 10px;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 20px;
}

.grid div {
    background: #f8f9fa;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
}

.grid div span {
    display: block;
    font-size: 11px;
    color: #777;
    margin-bottom: 3px;
}

.grid .full {
    grid-column: span 3;
}

/* ACTION BUTTONS */
.profile-actions {
    padding: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.profile-actions a,
.profile-actions button {
    border: none;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    background: #003366;
    transition: .3s;
}

.profile-actions .green {
    background: #28a745;
}

.profile-actions .blue {
    background: #17a2b8;
}

.profile-actions .red {
    background: #dc3545;
}

.profile-actions a:hover,
.profile-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, .2);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .grid .full {
        grid-column: span 1;
    }
}

.form-control,
.form-select {
    border-radius: 5px;
    padding: 10px 14px;
    border: 1px solid #dadada;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    color: #1f2937;
    transition: all .25s ease;
}

/* Placeholder */
.form-control::placeholder {
    color: #9ca3af;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0px rgba(24, 123, 115, 0.25);
    background: var(--bg-white);
}

/* Disabled */
.form-control:disabled,
.form-select:disabled {
    background: #e5e7eb;
    cursor: not-allowed;
}

/* Labels */
.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-text {
    font-size: 13px;
    color: #6b7280;
}

.form-floating>label {
    color: #6b7280;
}

.form-floating>.form-control:focus~label {
    color: var(--primary);
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0px rgba(24, 123, 115, 0.25);
}

.form-check-label {
    cursor: pointer;
    color: #374151;
}

.input-group-text {
    background: var(--primary);
    color: var(--text-color);
    border: none;
    border-radius: 10px 0 0 10px;
}

.is-valid {
    border-color: #22c55e;
}

.is-invalid {
    border-color: #ef4444;
}

.invalid-feedback {
    font-size: 13px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
}

.btn-black {
    background: var(--bg-color);
    border: none;
    color: var(--bg-white);
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s;
}

.btn-black:hover {
    background: var(--bg-color);
    color: var(--bg-white);
}

.btn-black:focus {
    outline: none;
    box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.3);
    /* subtle focus ring */
    background: var(--bg-color);
    color: var(--bg-white);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    border: none;
    color: #fff;
    border-radius: 10px;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
}

.form-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .1);
}


.table-wrapper {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
}

.table {
    margin-bottom: 0;
    border-color: rgba(0, 0, 0, .05);
}

.table thead {
    background: var(--primary);
    color: var(--text-color);
}

.table thead th {
    font-weight: 600;
    border-bottom: none;
    padding: 14px 28px 14px 14px;
    white-space: nowrap;
    vertical-align: middle;
}

.table tbody tr {
    transition: background-color .25s ease;
}

.table tbody tr:hover {
    background: rgba(24, 123, 115, .08);
}

.table td {
    padding: 14px;
    vertical-align: middle;
    color: #374151;
}

.table-striped>tbody>tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, .02);
}

.table-bordered> :not(caption)>* {
    border-color: rgba(0, 0, 0, .06);
}

table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
    background-image: none !important;
}

table.dataTable thead th::before,
table.dataTable thead th::after {
    display: none !important;
}

.badge-success {
    background: var(--primary);
}

.badge-warning {
    background: var(--secondary);
}

.badge-danger {
    background: #ef4444;
}


.table .btn {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 8px;
}

.pagination {
    gap: 6px;
}

.page-link {
    border-radius: 10px;
    border: none;
    color: var(--primary);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
    transition: all .2s ease;
    padding: 8px 14px;
}

.page-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 8px 20px rgba(24, 123, 115, .35);
}

.page-item.disabled .page-link {
    opacity: .5;
    pointer-events: none;
}

.table-responsive {
    border-radius: 16px;
}

.primary {
    background-color: var(--primary);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

.form-control[readonly],
.form-select[readonly],
.form-control.readonly {
    background-color: #f8f9fa;
    color: #495057;
    border-color: #ced4da;
    cursor: not-allowed;
    box-shadow: none;
}

.form-control[readonly]:focus,
.form-select[readonly]:focus {
    border-color: #ced4da;
    box-shadow: none;
    outline: none;
}

.dash-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: all .3s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .12);
    width: 100%;
}

.dash-card:hover {
    transform: translateY(-6px);
}

.dash-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: currentColor;
}

.dash-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
}

.dash-info span {
    font-size: 14px;
    color: #6b7280;
}

.dash-info h3 {
    margin: 4px 0 0;
    font-size: 26px;
    font-weight: 700;
    color: #111827;
}

.primary {
    color: var(--primary);
}

.primary .dash-icon {
    background: var(--primary);
}

.secondary {
    color: #6c757d;
}

.secondary .dash-icon {
    background: #6c757d;
}

.success {
    color: #28a745;
}

.success .dash-icon {
    background: #28a745;
}

.warning {
    color: #ffc107;
}

.warning .dash-icon {
    background: #ffc107;
}

.danger {
    color: #dc3545;
}

.danger .dash-icon {
    background: #dc3545;
}

.info {
    color: #17a2b8;
}

.info .dash-icon {
    background: #17a2b8;
}

.dark {
    color: #343a40;
}

.dark .dash-icon {
    background: #343a40;
}

@media (max-width: 991px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.install-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    background: url('/assets/web/img/classroom.jpg') no-repeat center center;
    background-size: cover;
    overflow: hidden;
}

.install-body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11, 31, 29, .55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1;
}

.install-body>* {
    position: relative;
    z-index: 2;
}

.setup-card {
    width: 100%;
    max-width: 820px;
    border-radius: 10px;
}

.setup-steps {
    display: flex;
    position: relative;
    margin-bottom: 20px;
}

.setup-steps::before {
    content: "";
    position: absolute;
    top: 21px;
    left: 8%;
    right: 8%;
    height: 4px;
    background: #dee2e6;
    border-radius: 4px;
}

.setup-steps::after {
    content: "";
    position: absolute;
    top: 21px;
    left: 8%;
    height: 4px;
    width: var(--progress, 0%);
    background: var(--primary);
    border-radius: 4px;
    transition: .4s ease;
}

.setup-steps .step {
    flex: 1;
    text-align: center;
    position: relative;
}

.setup-steps .circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    font-weight: 600;
    transition: .3s;
}

.setup-steps .step.active .circle {
    background: var(--primary);
    color: #fff;
}

.setup-steps small {
    font-size: 13px;
    color: #6c757d;
    display: block;
}

.step-content {
    min-height: 120px;
    animation: fade .4s ease;
}

.step-pane {
    display: none;
}

.step-pane.active {
    display: block;
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(6px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@media(max-width:991px) {
    .setup-card {
        max-width: 100%;
    }
}

@media(max-width:768px) {
    .install-body {
        overflow: auto;
    }

    .setup-steps::before,
    .setup-steps::after {
        left: 5%;
        right: 5%;
    }

    .setup-steps small {
        font-size: 12px;
    }

    .setup-steps .circle {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media(max-width:480px) {
    .install-body {
        overflow: auto;
    }

    .setup-steps {
        flex-direction: column;
        gap: 14px;
    }

    .setup-steps::before,
    .setup-steps::after {
        display: none;
    }

    .setup-steps .step {
        display: flex;
        align-items: center;
        gap: 10px;
        text-align: left;
    }

    .setup-steps .circle {
        margin: 0;
    }

    .setup-steps small {
        font-size: 13px;
    }
}


.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
}

.btn-round {
    border-radius: 50% !important;
}

.btn-primary .btn-icon {
    background: var(--primary);
    border: none;
    color: #fff;
}

.btn-primary.btn-icon:hover {
    background: var(--primary);
}

.btn-primary.btn-icon:focus,
.btn-primary.btn-icon:active {
    background: var(--primary);
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, .35);
}

/* Table spacing */
.table .btn-icon {
    margin: 0 2px;
}

/* Optional icon smooth */
.btn-icon i {
    pointer-events: none;
}

.leave-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 0.75rem;
    background-color: #f8f9fa;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.leave-card .student-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.leave-card img {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.leave-card .info-text {
    display: flex;
    flex-direction: column;
}

.leave-card .info-text h6 {
    margin: 0;
    font-weight: 600;
}

.leave-card .info-text p {
    margin: 0;
    font-size: 0.8rem;
    color: #6c757d;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.profile-card {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: none;
}

.profile-card .avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    object-fit: cover;
    background: #fff;
}

.profile-card h5 {
    font-weight: 700;
    color: #1e293b;
}

.profile-card small {
    font-size: 0.85rem;
}

.profile-card .row h6 {
    font-weight: 700;
    color: var(--primary);
}

.profile-card .row small {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.student-tabs-card {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.student-tabs-card .nav-tabs {
    border-bottom: none;
}

.student-tabs-card .nav-link {
    border: none;
    border-radius: 0;
    padding: 12px 18px;
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s ease;
}

.student-tabs-card .nav-link:hover {
    color: var(--primary);
}

.student-tabs-card .nav-link.active {
    background: #eefff4;
    color: var(--primary);
    border-bottom: 4px solid var(--primary);
}

.student-tabs-card .card-body {
    padding: 24px;
}

.attendance-box h4 {
    font-weight: 800;
}

.attendance-box small {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.attendance-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.attendance-header {
    background: #2f80ed;
    color: #fff;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.attendance-body {
    padding: 20px;
}

.attendance-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.btn-action {
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s ease;
}

.btn-action.present {
    background: #e6f7ee;
    color: #1a7f37;
}

.btn-action.absent {
    background: #fdeaea;
    color: #b42318;
}

.btn-action.holiday {
    background: #f3f4f6;
    color: #444;
}

.btn-action:hover {
    transform: translateY(-2px);
}

.table-wrapper {
    overflow-x: auto;
}

.attendance-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.attendance-table th {
    background: #f5f7fa;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
}

.attendance-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.attendance-table tbody tr:hover {
    background: #f9fafb;
}

.no-data {
    padding: 20px;
    color: #888;
    font-style: italic;
}

.attendance-footer {
    text-align: center;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-save,
.btn-export {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s ease;
}

/* Save Button */
.btn-save {
   background: var(--primary);
    color: white;
}

.btn-save:hover {
    background: var(--primary);
}

/* Export Button */
.btn-export {
    background: var(--secondary);
    color: white;
}

.btn-export:hover {
     background: var(--secondary);
}


.marks-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.05em;
}

.marks-table tbody tr {
    transition: background 0.2s ease;
}

.marks-table tbody tr:hover {
    background: #f8fafc;
}

.marks-table td {
    font-weight: 500;
}

.grade-badge {
    padding: 6px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 999px;
}

.remarks-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
}

@media (max-width: 768px) {
    .profile-card {
        text-align: center;
    }
}

.student-profile-table {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.student-profile-table th,
.student-profile-table td {
    padding: 14px 16px;
    vertical-align: middle;
    border-color: #e5e7eb;
}

/* Left column (labels) */
.student-profile-table th {
    width: 35%;
    background: #f8fafc;
    font-weight: 600;
    color: #334155;
    text-transform: capitalize;
    letter-spacing: 0.02em;
}

/* Right column (values) */
.student-profile-table td {
    font-weight: 500;
    color: #475569;
}

/* Zebra striping */
.student-profile-table tbody tr:nth-child(even) {
    background: #fbfdff;
}

/* Hover effect */
.student-profile-table tbody tr:hover {
    background: #eef2ff;
    transition: background 0.25s ease;
}

/* Dates & highlights */
.student-profile-table td span,
.student-profile-table td strong {
    color: #4f46e5;
}

/* Responsive improvement */
@media (max-width: 768px) {
    .student-profile-table th {
        width: 45%;
        font-size: 0.85rem;
    }

    .student-profile-table td {
        font-size: 0.85rem;
    }
}

.attendance-summary-table th {
    font-weight: 600;
    background: #f1f5f9;
}

.attendance-summary-table td {
    font-weight: 500;
}

.attendance-summary-table tbody tr:hover {
    background: #f8fafc;
}

/* ================= LAYOUT ================= */
.finance-print-wrapper {
    background: var(--body-color);
    min-height: 100vh;
}

.finance-print-wrapper .card {
    border: none;
    border-radius: 14px;
    background: var(--bg-white);
}

.finance-print-wrapper h5,
.finance-print-wrapper h6 {
    color: var(--primary-dark);
}

/* ================= HEADER ================= */
.finance-print-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
}

.finance-print-header .btn {
    background: var(--primary);
    border: none;
    color: var(--text-color);
}

.finance-print-header .btn:hover {
    background: var(--primary-dark);
}

/* ================= FILTER CARD ================= */
.finance-filter-card label {
    font-weight: 600;
    font-size: 13px;
    color: var(--primary-dark);
}

.finance-filter-card .form-control,
.finance-filter-card .form-select {
    border-radius: 10px;
    border: 1px solid #d1d5db;
}

.finance-filter-card .btn-primary {
    background: var(--primary);
    border: none;
}

.finance-filter-card .btn-primary:hover {
    background: var(--primary-dark);
}

/* ================= SUMMARY CARDS ================= */
.finance-summary-card {
    background: linear-gradient(135deg, var(--glass-bg), var(--bg-white));
    backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    text-align: center;
    padding: 20px;
}

.finance-summary-card h6 {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
}

.finance-summary-card h4 {
    font-weight: 800;
}

.finance-summary-income h4 {
    color: var(--primary);
}

.finance-summary-expense h4 {
    color: #dc2626;
}

.finance-summary-donation h4 {
    color: var(--secondary-dark);
}

.finance-summary-balance h4 {
    color: var(--primary-dark);
}

/* ================= TABS ================= */
.finance-tabs .nav-pills {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 6px;
}

.finance-tabs .nav-link {
    color: var(--primary-dark);
    font-weight: 600;
    border-radius: 10px;
    padding: 8px 18px;
}

.finance-tabs .nav-link.active {
    background: var(--primary);
    color: var(--text-color);
}

/* ================= TABLE ================= */
.finance-table-card {
    border-radius: 14px;
}

.finance-table {
    font-size: 14px;
}

.finance-table thead th {
    background: var(--primary);
    color: var(--text-color);
    font-weight: 600;
    border: none;
    white-space: nowrap;
}

.finance-table tbody td {
    vertical-align: middle;
    border-color: #e5e7eb;
}

.finance-table tbody tr:hover {
    background: #f1fdfb;
}

/* ================= BADGES ================= */
.finance-badge-paid {
    background: var(--primary);
    color: var(--text-color);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
}

.finance-badge-unpaid {
    background: #dc2626;
    color: var(--text-color);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
}

/* ================= PRINT MODE ================= */
@media print {
    body {
        background: #fff !important;
    }

    .finance-filter-card,
    .finance-tabs .nav-pills {
        display: none !important;
    }

    .finance-print-wrapper {
        padding: 0 !important;
    }

    .finance-summary-card {
        box-shadow: none !important;
    }
}

.income-summary .summary-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: all .25s ease;
}

.income-summary .summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.income-summary small {
    font-size: 13px;
    color: #6b7280;
    display: block;
}

.income-summary h5 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 6px;
    color: #111827;
}

/* Mobile optimization */
/* Large tablets */
@media (max-width: 1200px) {
    .income-summary h5 {
        font-size: 19px;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .income-summary h5 {
        font-size: 18px;
    }
}

/* Small tablets / large phones */
@media (max-width: 768px) {
    .income-summary h5 {
        font-size: 17px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .income-summary h5 {
        font-size: 16px;
    }
}

.student-details-card {
    background: var(--bg-white);
    border-radius: 5px;
    margin-bottom: 24px;
    overflow: hidden;
    width: 100% !important;
}


.status-badge {
    background: var(--text-color);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: clamp(12px, 2vw, 14px);
    white-space: nowrap;
}


.student-info-row {
    display: flex;
    gap: clamp(16px, 3vw, 24px);
    margin-bottom: 20px;
    align-items: flex-start;
}

.student-photo {
    flex: 0 0 auto;
    text-align: center;
}

.student-photo img {
    width: clamp(80px, 20vw, 120px);
    height: clamp(80px, 20vw, 120px);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
}

.student-details {
    flex: 1;
    min-width: 0;
}

.student-details h1 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: clamp(18px, 4vw, 20px);
    word-wrap: break-word;
}

.student-details p {
    margin-bottom: 8px;
    color: #333;
    font-size: clamp(13px, 2.5vw, 14px);
    line-height: 1.5;
    word-wrap: break-word;
}

.student-details strong {
    font-weight: 600;
    color: #555;
}

.divider {
    border: 0;
    border-top: 1px solid #ddd;
    margin: clamp(16px, 3vw, 20px) 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: clamp(12px, 3vw, 20px);
    margin-bottom: 20px;
}

.info-item {
    font-size: clamp(13px, 2.5vw, 14px);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.info-item strong {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}

.info-item span {
    color: #333;
    display: block;
    line-height: 1.4;
}

.section-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    font-size: clamp(15px, 3vw, 16px);
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 8px;
    font-size: clamp(14px, 2.5vw, 16px);
}

.amount-success {
    font-weight: 700;
    color: #28a745;
    font-size: clamp(14px, 2.5vw, 16px);
}

.amount-info {
    font-weight: 700;
    color: #17a2b8;
    font-size: clamp(14px, 2.5vw, 16px);
}

.amount-danger {
    font-weight: 700;
    color: #dc3545;
    font-size: clamp(14px, 2.5vw, 16px);
}

@media (max-width: 480px) {
    .student-details-card {
        border-radius: 8px;
        margin-bottom: 16px;
    }

    .card-body {
        padding: 16px;
    }

    .student-info-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .student-details {
        text-align: center;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .info-item {
        text-align: left;
        padding: 12px;
        background: var(--bg-white);
        border-radius: 8px;
    }

    .divider {
        margin: 16px 0;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .student-details-card {
        border-radius: 10px;
    }


    .card-body {
        padding: 20px;
    }

    .student-info-row {
        gap: 20px;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .info-item {
        padding: 10px;
        background: var(--bg-white);
        border-radius: 6px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .card-header {
        padding: 16px 20px;
    }

    .card-body {
        padding: 22px;
    }

    .student-photo {
        display: none;
    }

    .info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (min-width: 1025px) {
    .student-photo {
        display: none;
    }

    .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (orientation: landscape) and (max-height: 600px) {
    .student-photo img {
        width: 80px;
        height: 80px;
    }

    .card-body {
        padding: 16px;
    }

    .info-grid {
        gap: 12px;
    }
}

.invoice-items-wrapper {
    background: #fff;
    border-radius: 5px;
    margin-bottom: 24px;
    overflow: hidden;
}

.invoice-items-header {
    background: var(--primary);
    color: #fff;
    padding: 14px 18px;
}

.invoice-items-header input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.invoice-items-body {
    padding: 10px;
}

.invoice-info small,
.invoice-amount small {
    color: #6b7280;
    font-size: 12px;
}

.invoice-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #ffffff, #f9fafb);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    gap: 12px;
    transition: all 0.25s ease;
    position: relative;
}

.invoice-row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 4px;
    background: var(--primary);
    border-radius: 4px;
    opacity: 0.15;
}

.invoice-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

.invoice-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.invoice-row .fw-semibold {
    font-size: 14px;
    color: #1f2937;
}

.invoice-row small {
    font-size: 12px;
    color: #6b7280;
}

.invoice-row .text-end {
    min-width: 110px;
}

.invoice-row .text-end div {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.invoice-row .text-end small {
    font-size: 11px;
    color: #6b7280;
}

.invoice-row .badge {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    letter-spacing: 0.3px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.invoice-row .bg-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.invoice-row .bg-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

@media (max-width: 576px) {
    .invoice-row {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .invoice-row .text-end {
        width: 100%;
        text-align: left !important;
        margin-top: 6px;
    }
}

.nav-pills {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 8px;
    gap: 6px;
}

.nav-pills .nav-link {
    color: var(--primary-dark);
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 18px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-pills .nav-link:hover {
    background: var(--primary-light);
    color: var(--text-color);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg,
            var(--primary),
            var(--primary-dark));
    color: var(--text-color);
}

.finance-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.finance-col {
    display: flex;
}

.finance-summary-card {
    width: 100%;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.finance-summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
}

.finance-card-body {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 5px;
}

.icon-box {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffffff;
}

.text-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.text-box h6 {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    line-height: 1.2;
}

.text-box h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.icon-box.income {
    background: linear-gradient(135deg, #22c55e, #15803d);
}

.icon-box.expense {
    background: linear-gradient(135deg, #ef4444, #991b1b);
}

.icon-box.donation {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
}

.icon-box.balance {
    background: linear-gradient(135deg, #6b7280, #111827);
}

.text-success {
    color: #16a34a;
}

.text-danger {
    color: #dc2626;
}

.text-primary {
    color: #2563eb;
}

.text-dark {
    color: #111827;
}

@media (max-width: 768px) {
    .finance-card-body {
        padding: 12px 14px;
        gap: 12px;
    }

    .icon-box {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 16px;
    }

    .text-box h5 {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .finance-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .finance-card-body {
        padding: 10px 12px;
    }

    .icon-box {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 15px;
    }

    .text-box h6 {
        font-size: 11px;
    }

    .text-box h5 {
        font-size: 14px;
    }
}

.inquiry-card {
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.06);
    border: none;
}

.inquiry-header {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    padding: 14px 18px;
    border-radius: 5px 5px 0 0;
}

.followup-header {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    padding: 14px 18px;
    border-radius: 5px 5px 0 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.info-label {
    color: #7a7a7a;
}

.info-value {
    font-weight: 500;
}

.soft-badge {
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

.badge-status {
    background: var(--secondary-light);
    color: var(--bg-white);
}

.badge-priority {
    background: var(--secondary-light);
    color: var(--bg-white);
}

.message-box {
    background: #f7f9fb;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #e8edf3;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: var(--secondary);
    border-radius: 50%;
    margin-top: 6px;
}

.timeline-item {
    background: #f7f9fb;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid #e8edf3;
}

.timeline-next {
    background: var(--secondary-light);
    color: var(--bg-white);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.performance-wrapper{
    background:#f4f7fb;
    padding:25px;
    border-radius:16px;
}
.performance-card{
    background:#ffffff;
    border-radius:14px;
    padding:20px;
    box-shadow:0 4px 15px rgba(0,0,0,0.05);
    transition:0.3s;
}
.performance-card:hover{
    transform:translateY(-4px);
}
.performance-title{
    font-size:14px;
    color:#6c757d;
    margin-bottom:8px;
    text-transform:uppercase;
    letter-spacing:.5px;
}
.performance-value{
    font-size:24px;
    font-weight:700;
}
.performance-grade{
    padding:6px 14px;
    border-radius:30px;
    font-size:13px;
    font-weight:600;
}
.grade-success{background:var(--secondary);color:var(--bg-white);}
.grade-primary{background:var(--primary);color:var(--bg-white)}
.grade-warning{background:#fff4e5;color:#f59e0b;}
.grade-danger{background:#fdeaea;color:#dc3545;}
.grade-secondary{background:#f1f3f5;color:#6c757d;}

.progress-custom{
    height:14px;
    background:#e9ecef;
    border-radius:30px;
    overflow:hidden;
}
.progress-bar-custom{
    height:100%;
    border-radius:30px;
}
.subject-table{
    background:#ffffff;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 4px 15px rgba(0,0,0,0.05);
}
.subject-table th{
    background:#f8f9fa;
    font-weight:600;
    font-size:14px;
    text-transform:uppercase;
}
.subject-table td{
    vertical-align:middle;
    font-size:14px;
}
.no-data{
    padding:60px 0;
    text-align:center;
    color:#6c757d;
    font-weight:500;
}
.sidebar-footer {
    margin-top: auto;
    padding: 12px;
    font-size: 12px;
    text-align: center;
    color: var(--text-color);
    border-top: 1px solid rgba(255,255,255,0.1);
}