/* =====================================
   ADMINLTE MODERN PRO THEME
   Works with AdminLTE v2.x
===================================== */

/* Modern Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* GLOBAL */

body {
    font-family: 'Inter',sans-serif;
    background: #f3f6fb;
    color: #2b2b2b;
}

/* Smooth transitions */

* {
    transition: all .25s ease;
}

/* CONTENT AREA */

.content-wrapper {
    background: #f3f6fb;
    padding: 25px;
}

/* =====================================
   NAVBAR
===================================== */

.main-header .navbar {
    background: linear-gradient(90deg,#111111,#333333);
    border: none;
}

.main-header .logo {
    background: #047857;
    font-weight: 600;
    letter-spacing: .5px;
}

/* =====================================
   GLASS SIDEBAR
===================================== */

.main-sidebar {
    background: rgba(31,41,55,0.9);
    backdrop-filter: blur(14px);
}

.sidebar-menu > li > a {
    color: #e5e7eb;
    margin: 4px 10px;
    padding: 12px 18px;
    border-radius: 10px;
}

    .sidebar-menu > li > a:hover {
        background: rgba(255,255,255,0.08);
    }

.sidebar-menu > li.active > a {
    background: linear-gradient(45deg,#6366f1,#4f46e5);
    color: white;
}

/* =====================================
   CARDS / BOX
===================================== */

.box {
    border-radius: 14px;
    border: none;
    background: white;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.box-header {
    border-bottom: 1px solid #eef2f7;
    padding: 16px 20px;
}

.box-title {
    font-weight: 600;
}

.box-body {
    padding: 20px;
}

/* Hover lift */

.box:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,.12);
}

/* =====================================
   GRADIENT DASHBOARD WIDGETS
===================================== */

.small-box {
    border-radius: 16px;
    overflow: hidden;
    color: white;
}

    .small-box h3 {
        font-weight: 600;
    }

    .small-box .icon {
        opacity: .5;
    }

    .small-box.bg-aqua {
        background: linear-gradient(45deg,#06b6d4,#0891b2);
    }

    .small-box.bg-green {
        background: linear-gradient(45deg,#10b981,#059669);
    }

    .small-box.bg-yellow {
        background: linear-gradient(45deg,#f59e0b,#d97706);
    }

    .small-box.bg-red {
        background: linear-gradient(45deg,#ef4444,#dc2626);
    }

/* =====================================
   BUTTONS
===================================== */

.btn {
    border-radius: 10px;
    padding: 8px 16px;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(45deg,#10b981,#059669);
    border: none;
}

    .btn-primary:hover {
        transform: translateY(-1px);
        background: linear-gradient(45deg,#059669,#047857);
    }

.btn-success {
    background: #10b981;
    border: none;
}

.btn-danger {
    background: #ef4444;
    border: none;
}

/* =====================================
   TABLES
===================================== */

.table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

    .table thead {
        background: #f1f5f9;
    }

.table-hover tbody tr:hover {
    background: #f8fafc;
}

/* =====================================
   FORMS
===================================== */

.form-control {
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 8px 12px;
}

    .form-control:focus {
        border-color: #6366f1;
        box-shadow: 0 0 0 3px rgba(99,102,241,.15);
    }

/* =====================================
   DROPDOWN
===================================== */

.dropdown-menu {
    border-radius: 12px;
    border: none;
    box-shadow: 0 15px 35px rgba(0,0,0,.15);
}

/* =====================================
   INFO BOX
===================================== */

.info-box {
    border-radius: 14px;
    box-shadow: 0 6px 25px rgba(0,0,0,.08);
}

.info-box-icon {
    border-radius: 14px 14px 14px 14px;
    margin-left: 10px;
}

/* =====================================
   MODAL
===================================== */

.modal-content {
    border-radius: 16px;
    border: none;
}

/* =====================================
   FOOTER
===================================== */

.main-footer {
    background: white;
    border-top: none;
    box-shadow: 0 -2px 10px rgba(0,0,0,.05);
}

/* =====================================
   SCROLLBAR
===================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

/* CARD */

.modern-info-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    margin-bottom: 1.5rem;
}

/* ICON */

.modern-info-icon {
    width: 100px;
    height: 100px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,#059669,#10b981);
    color: white;
    font-size: 41px;
    margin-right: 32px;
}

/* CONTENT */

.modern-info-content {
    flex: 1;
}

/* TITLE */

.modern-title {
    font-size: 28px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
}

/* ROW FOR NUMBER + BUTTON */

.modern-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* NUMBER */

.modern-number {
    font-size: 44px;
    font-weight: 700;
    color: #1f5e9f;
}

/* BUTTON */

.modern-view-btn {
    background: #059669;
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .modern-view-btn:hover {
        background: #047857;
        color: white;
    }

.modern-info-box:hover {
    transform: translateY(-4px);
    transition: .3s;
    box-shadow: 0 18px 40px rgba(0,0,0,.12);
}
/* LEFT SIDE NAVBAR */

.navbar-left-items {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

/* SEARCH BOX */

.nav-search {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* SEARCH INPUT */

.nav-search-input {
    width: 260px;
    border-radius: 20px;
}

/* USER IMAGE */

.user-image {
    border-radius: 50%;
}

/* DROPDOWN */

.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.navbar-form .form-control {
    border-radius: 20px;
    width: 240px;
}

/* limit search width */

.nav-search-box {
    width: 420px;
    margin-left: 10px;
}

    /* keep textbox size controlled */

    .nav-search-box .form-control {
        width: 220px;
    }

/* keep navbar height aligned */

.navbar {
    display: flex;
    align-items: center;
}

/* fix right menu position */

.navbar-custom-menu {
    margin-left: auto;
}

.grid-item {
    margin-bottom: 20px;
}
/* SEARCH CONTAINER */

.modern-search {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    padding: 3px 10px;
    width: 420px;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

/* SEARCH ICON */

.search-icon {
    color: #777;
    margin-right: 8px;
}

/* INPUT */

.modern-search-input {
    border: none;
    box-shadow: none;
    flex: 1;
}

    /* REMOVE INPUT BORDER */

    .modern-search-input:focus {
        box-shadow: none;
    }

/* BUTTON */

.search-btn {
    background: #3c8dbc;
    color: white;
    border-radius: 20px;
    padding: 6px 10px;
    margin-left: 6px;
}

    /* HOVER */

    .search-btn:hover {
        background: #367fa9;
        color: white;
    }
.reset-btn {
    background: #ccc;
    color: black;
    border-radius: 20px;
    padding: 6px 10px;
    margin-left: 6px;
}

    /* HOVER */

    .reset-btn:hover {
        background: #aaa;
        color: black;
    }


.masonry {
    column-count: 2; /* number of columns */
    column-gap: 5px;
}

.masonry-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 10px;
    /* Prevent item from splitting */
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

    .masonry-item .panel {
        margin: 0;
    }

/* Responsive */

@media (max-width: 992px) {
    .masonry {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .masonry {
        column-count: 1;
    }
}
/*submit file*/
.shadow-sm {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.editor-wrapper {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    background: #fff;
}

.priority-radio label {
    margin-right: 15px;
    font-weight: 600;
}

.form-group label {
    font-weight: 600;
}

.alert ul li {
    margin-bottom: 5px;
}

.col-gap {
    padding-left: 20px;
    padding-right: 20px;
}
/* Space between each radio button */
.priority-radio input[type="radio"] {
    margin-right: 6px; /* space between radio button and label */
}

/* Space between each option (radio + label) */
.priority-radio label {
    display: inline-block;
    margin-right: 25px; /* horizontal gap between options */
    font-weight: 600;
    line-height: 1.6;
}

/* Optional: make it look cleaner on small screens */
@media (max-width: 767px) {
    .priority-radio label {
        display: block; /* stack vertically on mobile */
        margin-bottom: 10px;
    }
}
/* HEADER */

.modern-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

/* LEFT SIDE */

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 10px;
}

/* SEARCH */

.modern-search {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    padding: 4px 10px;
    width: 380px;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

/* ICON */

.search-icon {
    color: #777;
    margin-right: 6px;
}

/* INPUT */

.modern-search-input {
    border: none;
    flex: 1;
    box-shadow: none;
}

    .modern-search-input:focus {
        box-shadow: none;
    }

/* BUTTON */

.search-btn {
    background: #10b981;
    color: white;
    border-radius: 20px;
    padding: 5px 10px;
    margin-left: 5px;
}

    .search-btn:hover {
        background: #059669;
        color: white;
    }

/* ATTENDANCE */

.attendance-btn {
    background: #059669;
    color: white;
    border-radius: 20px;
    padding: 6px 14px;
    border: none;
}

    .attendance-btn:hover {
        background: #047857;
    }

/* USER IMAGE */

.user-image {
    border-radius: 50%;
}

/* FIX RIGHT MENU */

.navbar-custom-menu {
    margin-left: auto;
}

/* DROPDOWN */

.dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

/* 📱 RESPONSIVE */

@media (max-width:768px) {

    .nav-left {
        gap: 8px;
    }

    .modern-search {
        width: 250px;
    }

    .attendance-btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    .logo-lg {
        display: none;
    }
}
/* DROPDOWN CARD */

.modern-user-dropdown {
    width: 260px;
    border-radius: 16px;
    padding: 0;
    border: none;
    box-shadow: 0 15px 40px rgba(0,0,0,.2);
    overflow: hidden;
}

/* HEADER */

.modern-user-header {
    padding: 18px;
    text-align: center;
    background: linear-gradient(135deg,#059669,#10b981);
    color: white;
}

/* AVATAR */

.modern-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid rgba(255,255,255,.4);
}

/* NAME */

.modern-user-name {
    font-size: 16px;
    font-weight: 600;
}

/* ROLE */

.modern-user-role {
    font-size: 13px;
    opacity: .9;
}

/* ACTIONS */

.modern-user-actions {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: white;
}

/* BUTTON */

.modern-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
}

    /* OUTLINE BUTTON */

    .modern-btn.outline {
        border: 1px solid #d1d5db;
        color: #374151;
    }

        .modern-btn.outline:hover {
            background: #f3f4f6;
        }

    /* DANGER BUTTON */

    .modern-btn.danger {
        background: #ef4444;
        color: white;
    }

        .modern-btn.danger:hover {
            background: #dc2626;
        }

/* TOGGLE */

.modern-user-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* MOBILE FIX */

@media (max-width:767px) {

    .modern-user-dropdown {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }
}
/* Remove padding on Extra Small (mobile) screens only (< 768px) */
@media (max-width: 767px) {
    .no-padding-xs {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Remove padding on Small screens (tablets) (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .no-padding-sm {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 768px) {
    .content-wrapper,
    .right-side,
    .content {
        padding: 10px !important;
    }

    .box {
        margin: 0 !important;
    }
}
@media (max-width: 768px) {
    .RadEditor .reToolbar {
        overflow-x: auto;
        white-space: nowrap;
    }
}

    .RadEditor {
        width: 100% !important;
    }

@media (max-width: 768px) {
    .btn {
        width: 100%;
        margin-bottom: 10px;
        white-space: normal;
    }
}
@media (max-width: 768px) {
    .file-upload,
    .dropzone,
    .upload-area {
        width: 100% !important;
        padding: 15px;
    }
}
@media (max-width: 768px) {
    select,
    .form-control {
        width: 100% !important;
        margin-bottom: 10px;
    }
}
body {
    overflow-x: hidden;
}
@media (max-width: 768px) {

    .file-actions {
        display: flex;
        justify-content: space-between;
    }

        .file-actions .btn {
            width: 40px;
            height: 40px;
            padding: 0;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

            .file-actions .btn i {
                font-size: 16px;
            }
}
.page-badge {
    display: block;
    margin-bottom: 10px;
}
@media (max-width: 768px) {

    .attachment-label {
        word-break: break-word;
    }
}
.logo-img {
    max-width: 120px;
    margin: auto;
}

.no-margin {
    margin: 2px 0;
}

.ref-row {
    padding: 10px 0;
}

/* Mobile Fix */
@media (max-width: 768px) {

    .ref-row .text-right {
        text-align: left !important;
        margin-top: 5px;
    }

    .logo-img {
        max-width: 80px;
    }

    h3 {
        font-size: 18px;
    }

    p {
        font-size: 13px;
    }
}
/* ===== FIX DROPDOWN BUTTON VISIBILITY ===== */

.modern-user-actions .modern-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    background: #ffffff !important; /* FORCE background */
    color: #111 !important; /* FORCE text color */

    border: 1px solid #d1d5db !important;
    border-radius: 8px;
    text-decoration: none !important;
}

    /* ICON COLOR */
    .modern-user-actions .modern-btn i {
        color: inherit !important;
        margin-right: 6px;
    }

    /* DANGER BUTTON (Sign out) */
    .modern-user-actions .modern-btn.danger {
        background: #dc2626 !important;
        color: #fff !important;
        border: none !important;
    }

    /* HOVER */
    .modern-user-actions .modern-btn:hover {
        background: #f3f4f6 !important;
    }

    .modern-user-actions .modern-btn.danger:hover {
        background: #b91c1c !important;
    }

/* ===== VERY IMPORTANT (AdminLTE override fix) ===== */

.dropdown-menu > li > a {
    background: transparent !important;
}

/* REMOVE LINK OVERRIDE */
.dropdown-menu a {
    color: inherit !important;
    background: transparent !important;
}
/* WRAPPER */
.modern-search-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

/* INPUT */
.modern-search-input {
    flex: 1;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    height: 40px;
}

/* BUTTON GROUP */
.modern-search-buttons {
    display: flex;
    gap: 8px;
}

/* BUTTONS */
.modern-btn-search {
    background: #16a34a;
    border: none;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
}

.modern-btn-reset {
    background: #e5e7eb;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
}

/* 🔥 MOBILE FIX */
@media (max-width:767px) {

    .modern-search-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    /* full width input */
    .modern-search-input {
        width: 100%;
    }

    /* buttons full width */
    .modern-search-buttons {
        width: 100%;
    }

        .modern-search-buttons .btn {
            width: 100%;
        }
}
