/* ================= CUSTOM CSS FIXES ================= */

/* Reduce gap between dashboard sections */
.default-dashboard .row {
    margin-bottom: 0 !important;
}

.default-dashboard .mb-3 {
    margin-bottom: 0.75rem !important;
}

.default-dashboard .card {
    margin-bottom: 0 !important;
}

/* Fix header to stay aligned with fixed sidebar */
.page-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background-color: #fff;
    min-height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: stretch !important;
}

/* Reduce logo wrapper height - full height background */
.page-header .logo-wrapper {
    padding: 10px 15px !important;
    min-height: auto !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    background: var(--theme-default) !important;
}

.page-header .logo-wrapper img {
    max-height: 35px !important;
    width: auto !important;
}

/* Remove gap between logo wrapper and toggle button */
.page-header .logo-wrapper .toggle-sidebar {
    margin-left: 10px !important;
}

/* Reduce main header padding */
.page-header .page-main-header {
    padding: 10px 15px !important;
    min-height: auto !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

/* Adjust page body to account for fixed header */
.page-body-wrapper {
    padding-top: 60px;
}

@media (max-width: 991.98px) {
    .page-body-wrapper {
        padding-top: 55px;
    }
}

@media (max-width: 767.98px) {
    .page-body-wrapper {
        padding-top: 52px;
    }
}

@media (max-width: 575.98px) {
    .page-body-wrapper {
        padding-top: 50px;
    }
}

/* Prevent horizontal scrollbar */
.page-wrapper {
    overflow-x: hidden;
}

.page-body-wrapper {
    overflow-x: hidden;
}

/* Sidebar scrollbar styling */
.main-sidebar {
    scrollbar-width: thin;
}

.main-sidebar::-webkit-scrollbar {
    width: 5px;
}

.main-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

/* Ensure pin icon doesn't cause layout shift */
.sidebar-list > .fa-thumbtack {
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-list:hover > .fa-thumbtack {
    opacity: 1;
}

/* ================= SIDEBAR MENU SEARCH ================= */
.sidebar-search-container {
    padding: 15px;
    position: relative;
}

.sidebar-search-wrapper {
    display: flex;
    align-items: center;
    background: #f0f4f7;
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid #dce3e8;
    transition: all 0.3s ease;
}

.sidebar-search-wrapper:focus-within {
    background: #fff;
    border-color: var(--theme-default);
    box-shadow: 0 2px 8px rgba(48, 142, 135, 0.15);
}

.sidebar-search-wrapper .search-icon {
    color: #6c757d;
    font-size: 16px;
    margin-right: 10px;
}

.sidebar-search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: #333;
    width: 100%;
}

.sidebar-search-input::placeholder {
    color: #999;
}

.sidebar-search-results {
    position: absolute;
    top: 100%;
    left: 15px;
    right: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1002;
    display: none;
}

.sidebar-search-results.show {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar-search-results::-webkit-scrollbar {
    width: 5px;
}

.sidebar-search-results::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 3px;
}

.sidebar-search-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f3f4;
}

.sidebar-search-item:last-child {
    border-bottom: none;
}

.sidebar-search-item:hover,
.sidebar-search-item.active {
    background: rgba(48, 142, 135, 0.1);
}

.sidebar-search-item .menu-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 14px;
    flex-shrink: 0;
}

.sidebar-search-item .menu-icon.main-menu {
    background: linear-gradient(135deg, var(--theme-default) 0%, #2a9d8f 100%);
    color: #fff;
}

.sidebar-search-item .menu-icon.sub-menu {
    background: #e9ecef;
    color: #6c757d;
}

.sidebar-search-item .menu-info {
    flex: 1;
    min-width: 0;
}

.sidebar-search-item .menu-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-search-item .menu-path {
    font-size: 10px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-search-item .menu-arrow {
    color: #adb5bd;
    font-size: 12px;
    flex-shrink: 0;
}

.sidebar-search-no-results {
    padding: 20px;
    text-align: center;
    color: #888;
}

.sidebar-search-no-results i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
    color: #ccc;
}

.sidebar-search-highlight {
    background-color: rgba(48, 142, 135, 0.25);
    border-radius: 2px;
    padding: 0 2px;
}

/* ================= BRANCH SELECTION POPUP ================= */
.branch-selection-popup {
    max-width: 450px !important;
    border-radius: 15px !important;
}

.branch-selection-title {
    font-size: 1.4rem !important;
    color: #333 !important;
}

.branch-selection-container {
    text-align: left;
}

.branch-list {
    max-height: 350px;
    overflow-y: auto;
}

.branch-option {
    padding: 15px 20px !important;
    border: 1px solid #e9ecef !important;
    margin-bottom: 8px !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
    cursor: pointer;
}

.branch-option:hover {
    background: linear-gradient(135deg, rgba(48, 142, 135, 0.08) 0%, rgba(48, 142, 135, 0.04) 100%) !important;
    border-color: var(--theme-default) !important;
    transform: translateX(5px);
}

.branch-option.active {
    background: var(--theme-default) !important;
    color: #fff !important;
    border-color: var(--theme-default) !important;
}

.branch-option.active i {
    color: #fff !important;
}

.branch-option .branch-name {
    font-weight: 600;
    font-size: 15px;
}

.branch-option i.fa-building {
    font-size: 20px;
}

.branch-list::-webkit-scrollbar {
    width: 5px;
}

.branch-list::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 3px;
}

/* ================= YEAR SWITCHER ================= */
.year-switcher-wrapper {
    position: relative;
}

.year-switcher-wrapper .custom-dropdown {
    position: relative;
}

.year-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fff;
    color: #333;
    border: 1px solid var(--theme-default);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.year-display:hover {
    background: rgba(48, 142, 135, 0.05);
}

.year-display .year-icon {
    color: var(--theme-default);
}

.year-display .current-year {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.year-display .year-arrow {
    color: var(--theme-default);
    transition: transform 0.2s ease;
}

.year-switcher-wrapper .custom-dropdown.open .year-arrow {
    transform: rotate(180deg);
}

.year-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    min-width: 130px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    z-index: 1000;
    list-style: none;
    margin: 0;
    border: 1px solid #e9ecef;
}

.year-switcher-wrapper .custom-dropdown.open .year-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.year-option {
    padding: 0;
    margin: 0;
}

.year-option a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.year-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ccc;
}

.year-option:hover a {
    background: #f5f5f5;
    color: var(--theme-default);
}

.year-option:hover .year-dot {
    background: var(--theme-default);
}

.year-option.active a {
    background: var(--theme-default);
    color: #fff;
}

.year-option.active .year-dot {
    background: #fff;
}

.year-option.active:hover a {
    background: var(--theme-default);
    color: #fff;
}

/* ================= BRANCH SWITCHER ================= */
.branch-switcher-wrapper {
    position: relative;
}

.branch-switcher-wrapper .custom-dropdown {
    position: relative;
}

.branch-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fff;
    color: #333;
    border: 1px solid var(--theme-default);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.branch-display:hover {
    background: rgba(48, 142, 135, 0.05);
}

.branch-display .branch-icon {
    color: var(--theme-default);
}

.branch-display .current-branch {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.branch-display .branch-arrow {
    color: var(--theme-default);
    transition: transform 0.2s ease;
}

.branch-switcher-wrapper .custom-dropdown.open .branch-arrow {
    transform: rotate(180deg);
}

.branch-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    min-width: 250px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    z-index: 1000;
    list-style: none;
    margin: 0;
    border: 1px solid #e9ecef;
    max-height: 300px;
    overflow-y: auto;
}

.branch-switcher-wrapper .custom-dropdown.open .branch-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.branch-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.branch-item {
    padding: 0;
    margin: 0;
}

.branch-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
}

.branch-item:hover {
    background: #f5f5f5;
}

.branch-item:hover a {
    color: var(--theme-default);
}

.branch-item.active a {
    background: var(--theme-default);
    color: #fff;
}

.branch-item.active:hover a {
    background: var(--theme-default);
    color: #fff;
}

.branch-item i.fa-check {
    font-size: 14px;
    margin-left: auto;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .branch-display .current-branch {
        display: none;
    }
    
    .branch-menu {
        right: 0;
        left: auto;
    }
}

/* ================= MODERN PAGINATION STYLES ================= */
.modern-pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding: 1rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info-section {
    display: flex;
    align-items: center;
}

.pagination-info-text {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.pagination-nav {
    display: flex;
    align-items: center;
}

.modern-pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 6px;
    align-items: center;
}

.modern-pagination li {
    margin: 0;
}

.modern-pagination li a,
.modern-pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.modern-pagination li a:hover {
    color: #fff;
    background-color: var(--theme-default, #7366ff);
    border-color: var(--theme-default, #7366ff);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(115, 102, 255, 0.25);
}

.modern-pagination li.active a,
.modern-pagination li.active span {
    color: #fff;
    background-color: var(--theme-default, #7366ff);
    border-color: var(--theme-default, #7366ff);
    box-shadow: 0 3px 6px rgba(115, 102, 255, 0.3);
    font-weight: 600;
}

.modern-pagination li.disabled a,
.modern-pagination li.disabled span {
    color: #adb5bd;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Previous/Next buttons styling */
.modern-pagination li:first-child a,
.modern-pagination li:last-child a {
    font-weight: 600;
    padding: 0 16px;
}

/* Ellipsis styling */
.modern-pagination li.ellipsis {
    pointer-events: none;
}

.modern-pagination li.ellipsis span {
    border: none;
    background: transparent;
    color: #adb5bd;
    min-width: auto;
    padding: 0 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-pagination-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pagination-nav {
        width: 100%;
    }
    
    .modern-pagination {
        width: 100%;
        justify-content: center;
    }
    
    .modern-pagination li a,
    .modern-pagination li span {
        min-width: 34px;
        height: 34px;
        padding: 0 10px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .modern-pagination li a,
    .modern-pagination li span {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
    }
    
    .pagination-info-text {
        font-size: 13px;
    }
}

/* ================= DASHBOARD HEADER ================= */
.page-title .breadcrumb {
    justify-content: flex-start !important;
    padding-left: 0;
    background: transparent;
}

/* ================= DASHBOARD ACTION BUTTONS ================= */
.dashboard-actions {
    margin-top: 0.5rem;
}

.dashboard-actions .btn {
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.dashboard-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.dashboard-actions .btn i {
    font-size: 16px;
}

/* Modern Pink Button - Student Attendance */
.btn-modern-pink {
    background: linear-gradient(135deg, #E91E63 0%, #EC407A 50%, #D81B60 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
}

.btn-modern-pink:hover {
    background: linear-gradient(135deg, #C2185B 0%, #D81B60 50%, #AD1457 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.btn-modern-pink:focus,
.btn-modern-pink:active {
    background: linear-gradient(135deg, #AD1457 0%, #C2185B 100%);
    color: #fff;
}

/* Modern Orange Button - Mark Input */
.btn-modern-orange {
    background: linear-gradient(135deg, #F57C00 0%, #FF9800 50%, #EF6C00 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
}

.btn-modern-orange:hover {
    background: linear-gradient(135deg, #E65100 0%, #F57C00 50%, #D84315 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

.btn-modern-orange:focus,
.btn-modern-orange:active {
    background: linear-gradient(135deg, #D84315 0%, #E65100 100%);
    color: #fff;
}

/* Modern Blue Button - Fees Collect */
.btn-modern-blue {
    background: linear-gradient(135deg, #00897B 0%, #26A69A 50%, #00796B 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
}

.btn-modern-blue:hover {
    background: linear-gradient(135deg, #00695C 0%, #00897B 50%, #004D40 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(38, 166, 154, 0.4);
}

.btn-modern-blue:focus,
.btn-modern-blue:active {
    background: linear-gradient(135deg, #004D40 0%, #00695C 100%);
    color: #fff;
}

/* Responsive Dashboard Actions */
@media (max-width: 1200px) {
    .dashboard-actions .btn {
        font-size: 13px;
        padding: 8px 16px;
    }
}

@media (max-width: 991px) {
    .page-title .row {
        flex-wrap: wrap;
    }
    
    .page-title .col:last-child {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 15px;
    }
    
    .dashboard-actions {
        justify-content: flex-start !important;
    }
}

@media (max-width: 768px) {
    .dashboard-actions .btn {
        font-size: 12px;
        padding: 8px 14px;
    }
}

@media (max-width: 576px) {
    .dashboard-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .dashboard-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ================= INSTITUTE & HEAD TEACHER CARDS - MODERN DESIGN ================= */
.institute-card,
.headteacher-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(48, 142, 135, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.institute-card {
    background: linear-gradient(135deg, #0f4d47 0%, #1a6962 35%, #308e87 70%, #3fa89f 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.headteacher-card {
    background: linear-gradient(135deg, #1d7972 0%, #26a69a 40%, #308e87 75%, #45b8ad 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Half-Circle Top Right - Contained Within Card */
.institute-card::before,
.headteacher-card::before {
    content: '';
    position: absolute;
    top: -70px;
    right: -70px;
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
  
}



/* Glassmorphism Effect Layer */
.institute-card::after,
.headteacher-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

/* Additional Decorative Element - Bottom Left */
.institute-card .card-body::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.headteacher-card .card-body::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.institute-card .card-body,
.headteacher-card .card-body {
    position: relative;
    z-index: 2;
}

.institute-card:hover,
.headteacher-card:hover {
    box-shadow: 0 15px 50px rgba(48, 142, 135, 0.3);
    transform: translateY(-5px) scale(1.01);
}

.institute-logo {
    width: 80px;
    height: 80px;
    background: #ffffff;
    border-radius: 8px;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.institute-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.teacher-photo {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: #ffffff;
}

.teacher-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.institute-name,
.teacher-name {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.4;
}

.institute-year {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 4px;
}

.teacher-title {
    font-size: 13px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.5;
    margin-bottom: 4px;
}

.institute-year strong,
.institute-id strong {
    font-weight: 600;
    color: #ffffff;
}

.institute-id {
    font-size: 13px;
    font-weight: 500;
    color: white;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.institute-id strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .institute-logo,
    .teacher-photo {
        width: 70px;
        height: 70px;
    }
    
    .institute-name,
    .teacher-name {
        font-size: 16px;
    }
    
    .institute-year,
    .institute-id,
    .teacher-title {
        font-size: 13px;
    }
}

/* ================= LANGUAGE WRAPPER WITH BORDER ================= */
.lang-wrapper-bordered {
    display: inline-block !important;
    border: 1px solid #308e87 !important;
    border-radius: 8px !important;
    padding: 0 !important;
    margin-right: 12px;
    transition: all 0.3s ease;
    vertical-align: middle;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
}

header .header-right .lang-wrapper-bordered {
    border: 1px solid #308e87 !important;
    border-radius: 8px !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
}

.lang-wrapper-bordered:hover {
    border-color: #267973 !important;
    background: rgba(48, 142, 135, 0.05);
}

.lang-wrapper-bordered .translate_wrapper {
    padding: 0;
}

.lang-wrapper-bordered .current_lang {
    padding: 8px 14px;
}

.lang-wrapper-bordered .current_lang .lang {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ================= SMS PURCHASE WRAPPER WITH BORDER ================= */
.sms-wrapper-bordered {
    display: inline-block !important;
    border: 1px solid #308e87 !important;
    border-radius: 8px !important;
    padding: 0 !important;
    margin-right: 15px;
    transition: all 0.3s ease;
    vertical-align: middle;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
}

header .header-right .sms-wrapper-bordered {
    border: 1px solid #308e87 !important;
    border-radius: 8px !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
}

.sms-wrapper-bordered:hover {
    border-color: #267973 !important;
    background: rgba(48, 142, 135, 0.05);
    transform: translateY(-1px);
}

.sms-wrapper-bordered .sms-purchase-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: none !important;
    border-radius: 0 !important;
    color: #308e87;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sms-wrapper-bordered .sms-purchase-btn .sms-icon {
    width: 22px;
    height: 22px;
}

.sms-wrapper-bordered .sms-purchase-btn .sms-text {
    font-size: 14px;
    font-weight: 700;
    color: #308e87;
    margin: 0;
    white-space: nowrap;
}

.sms-wrapper-bordered:hover .sms-purchase-btn .sms-text {
    color: #267973;
}

/* Responsive */
@media (max-width: 991px) {
    .lang-wrapper-bordered,
    .sms-wrapper-bordered {
        margin-right: 8px;
    }
    
    .sms-wrapper-bordered .sms-purchase-btn {
        padding: 8px 12px;
    }
    
    .sms-wrapper-bordered .sms-purchase-btn .sms-text {
        font-size: 13px;
    }
    
    .lang-wrapper-bordered .current_lang {
        padding: 8px 12px;
    }
}

@media (max-width: 768px) {
    .sms-wrapper-bordered .sms-purchase-btn .sms-text {
        display: none;
    }
    
    .sms-wrapper-bordered .sms-purchase-btn {
        padding: 8px 10px;
    }
}

/* ================= HEADER SEPARATOR ================= */
header .header-right li.profile-nav::before {
    content: '';
    position: absolute;
    left: -12px;
    top: -10px;
    bottom: -10px;
    width: 2px;
    background-color: var(--body-font-color);
    opacity: 0.2;
}

header .header-right li.profile-nav {
    position: relative;
    margin-left: 24px;
}

/* ================= SIDEBAR MENU FIXES ================= */

/* Fix scrolling issue when submenus are expanded */
.main-sidebar {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: calc(100vh - 80px) !important;
}

.sidebar-menu {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    max-height: 100% !important;
}

/* Fix long submenu names - allow wrapping but prevent horizontal shifting */
.sidebar-submenu li a,
.according-submenu li a,
.page-sidebar .sidebar-submenu li a,
.page-sidebar .according-submenu li a,
.main-sidebar .sidebar-menu .sidebar-submenu li a,
.main-sidebar .sidebar-menu .according-submenu li a {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
    display: block !important;
    line-height: 1.5 !important;
    padding-right: 10px !important;
    text-overflow: clip !important;
    overflow: visible !important;
}

/* Override any text truncate classes */
.sidebar-submenu .text-truncate,
.according-submenu .text-truncate,
.sidebar-submenu li a.text-truncate,
.according-submenu li a.text-truncate {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
}

/* Fix submenu-title wrapping and arrow icon alignment */
.sidebar-submenu li .submenu-title,
.according-submenu li .submenu-title,
.page-sidebar .sidebar-submenu li .submenu-title {
    white-space: normal !important;
    word-wrap: break-word !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    line-height: 1.5 !important;
    justify-content: space-between !important;
}

/* Ensure submenu li takes full width */
.sidebar-submenu li,
.page-sidebar .sidebar-submenu li {
    display: block !important;
    width: 100% !important;
}

.sidebar-submenu li .submenu-title span,
.according-submenu li .submenu-title span,
.page-sidebar .sidebar-submenu li .submenu-title span,
.page-sidebar .according-submenu li .submenu-title span,
.main-sidebar .sidebar-menu .sidebar-submenu li .submenu-title span,
.main-sidebar .sidebar-menu .according-submenu li .submenu-title span {
    flex: 1 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    padding-right: 5px !important;
    text-overflow: clip !important;
    overflow: visible !important;
}

/* Override for any nested text elements */
.sidebar-submenu li .submenu-title,
.according-submenu li .submenu-title {
    text-overflow: clip !important;
}

.sidebar-submenu li .submenu-title *:not(i),
.according-submenu li .submenu-title *:not(i) {
    text-overflow: clip !important;
    overflow: visible !important;
    white-space: normal !important;
}

.sidebar-submenu li .submenu-title i.iconly-Arrow-Right-2,
.according-submenu li .submenu-title i.iconly-Arrow-Right-2,
.page-sidebar .sidebar-submenu li .submenu-title i.iconly-Arrow-Right-2 {
    margin-left: auto !important;
    flex-shrink: 0 !important;
    font-size: 16px !important;
    color: inherit !important;
    position: absolute !important;
    right: 0 !important;
}

.sidebar-submenu,
.according-submenu {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* Fix submenu background color - ensure submenus don't inherit parent's active/hover background */
.sidebar-menu .sidebar-list.active .sidebar-submenu,
.sidebar-menu .sidebar-list:hover .sidebar-submenu,
.sidebar-menu .sidebar-list .sidebar-submenu,
.page-sidebar .sidebar-submenu,
.sidebar-submenu .according-submenu {
    background-color: transparent !important;
}

.sidebar-menu .sidebar-list.active .sidebar-submenu li,
.sidebar-menu .sidebar-list:hover .sidebar-submenu li,
.sidebar-submenu li,
.according-submenu li {
    background-color: transparent !important;
}

.sidebar-menu .sidebar-list.active .sidebar-submenu li a,
.sidebar-menu .sidebar-list:hover .sidebar-submenu li a,
.sidebar-menu .sidebar-list.active .sidebar-submenu li .submenu-title,
.sidebar-menu .sidebar-list:hover .sidebar-submenu li .submenu-title,
.sidebar-submenu li a,
.sidebar-submenu li .submenu-title,
.according-submenu li a {
    background-color: transparent !important;
}

/* Ensure nested according-submenu also has transparent background */
.sidebar-submenu li.active .according-submenu,
.sidebar-submenu li:hover .according-submenu,
.according-submenu li.active,
.according-submenu li:hover {
    background-color: transparent !important;
}

/* Color submenu text when submenu is opened/active */
.sidebar-submenu li.active > .submenu-title,
.sidebar-submenu li.active > .submenu-title span,
.sidebar-submenu li.active > a,
.according-submenu li.active > a {
    color: var(--theme-default) !important;
}

/* Color submenu text on hover */
.sidebar-submenu li:hover > .submenu-title,
.sidebar-submenu li:hover > .submenu-title span,
.sidebar-submenu li:hover > a,
.according-submenu li:hover > a {
    color: var(--theme-default) !important;
}

/* Ensure parent menu container doesn't shift */
.sidebar-list {
    overflow: visible !important;
}

.sidebar-list .sidebar-submenu {
    width: 100% !important;
    box-sizing: border-box !important;
}

.sidebar-list .according-submenu {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Prevent horizontal scroll on sidebar wrapper */
.page-sidebar {
    overflow-x: hidden !important;
}

.page-sidebar .main-sidebar {
    overflow-x: hidden !important;
}

/* ================= STAT CARDS (SMS, Students, Staff) ================= */
.sms-balance-card,
.active-student-card,
.active-staff-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(48, 142, 135, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* All Stat Cards - Same as Institute Card */
.sms-balance-card,
.active-student-card,
.active-staff-card {
    background: linear-gradient(135deg, #0f4d47 0%, #1a6962 35%, #308e87 70%, #3fa89f 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Half-Circle Top Right */
.sms-balance-card::before,
.active-student-card::before,
.active-staff-card::before {
    content: '';
    position: absolute;
    top: -70px;
    right: -70px;
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

/* Glassmorphism Effect Layer */
.sms-balance-card::after,
.active-student-card::after,
.active-staff-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

/* Decorative Element - Bottom Left */
.sms-balance-card .card-body::before,
.active-student-card .card-body::before,
.active-staff-card .card-body::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.sms-balance-card .card-body,
.active-student-card .card-body,
.active-staff-card .card-body {
    position: relative;
    z-index: 2;
}

.sms-balance-card:hover,
.active-student-card:hover,
.active-staff-card:hover {
    box-shadow: 0 15px 50px rgba(48, 142, 135, 0.3);
    transform: translateY(-5px) scale(1.01);
}

/* Stat Icon */
.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.stat-icon i {
    font-size: 22px;
    color: #ffffff;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
    fill: none;
}

/* Stat Text Styles */
.stat-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.4;
}

.stat-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.stat-count {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0;
    line-height: 1.2;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 991px) {
    .sms-balance-card,
    .active-student-card,
    .active-staff-card {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .stat-icon {
        width: 45px;
        height: 45px;
    }
    
    .stat-icon i {
        font-size: 20px;
    }
    
    .stat-title {
        font-size: 14px;
    }
    
    .stat-subtitle {
        font-size: 12px;
    }
    
    .stat-count {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 13px;
    }
}

/* ================= SUPPORT CENTER CARD ================= */
.support-center-card {
    border: none;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(48, 142, 135, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.support-center-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #308e87 0%, #3fa89f 100%);
}

.support-center-card:hover {
    box-shadow: 0 10px 30px rgba(48, 142, 135, 0.15);
    transform: translateY(-3px);
}

.support-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #308e87 0%, #3fa89f 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(48, 142, 135, 0.3);
}

.support-icon svg {
    width: 22px;
    height: 22px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 1.5;
}

.support-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
}

.contact-icon {
    width: 18px;
    height: 18px;
    stroke: #308e87;
    flex-shrink: 0;
}

.support-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #308e87;
    text-decoration: none;
    transition: color 0.2s ease;
}

.support-link:hover {
    color: #267973;
    text-decoration: underline;
}

/* ================= TODAY BIRTHDAY CARD ================= */
.birthday-card {
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #0f4d47 0%, #1a6962 35%, #308e87 70%, #3fa89f 100%);
    box-shadow: 0 10px 40px rgba(48, 142, 135, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.birthday-card::before {
    content: '';
    position: absolute;
    top: -70px;
    right: -70px;
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    pointer-events: none;
}

.birthday-card:hover {
    box-shadow: 0 15px 50px rgba(48, 142, 135, 0.3);
    transform: translateY(-5px);
}

.birthday-content {
    position: relative;
    z-index: 2;
}

.birthday-icon {
    width: 40px;
    height: 40px;
    stroke: #ffffff;
    fill: none;
}

.birthday-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

/* ================= ATTENDANCE OVERVIEW CARD ================= */
.attendance-overview-card {
    border: none;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(48, 142, 135, 0.1);
    display: flex;
    flex-direction: column;
}

.attendance-overview-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.attendance-overview-card .card-body .row {
    flex: 1;
}

.attendance-overview-card .card-body .row > div {
    display: flex;
}

.attendance-overview-card .attendance-stat-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.attendance-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.attendance-nav .btn-nav {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    transition: all 0.2s ease;
}

.attendance-nav .btn-nav:hover {
    border-color: #308e87;
    background: rgba(48, 142, 135, 0.05);
}

.attendance-nav .btn-nav svg {
    width: 16px;
    height: 16px;
    stroke: #666;
    fill: none;
}

#nextAttendance svg {
    transform: rotate(180deg);
}

.attendance-nav .btn-nav:hover svg {
    stroke: #308e87;
}

/* Attendance Stat Cards */
.attendance-stat-card {
    border-radius: 15px;
    padding: 20px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.attendance-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
}

/* Total Student - Teal theme */
.attendance-stat-card.total-student {
    background: linear-gradient(135deg, rgba(48, 142, 135, 0.1) 0%, rgba(48, 142, 135, 0.05) 100%);
}

.attendance-stat-card.total-student::before {
    background: linear-gradient(180deg, #308e87 0%, #3fa89f 100%);
}

/* Present Student - Green theme */
.attendance-stat-card.present-student {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1) 0%, rgba(39, 174, 96, 0.05) 100%);
}

.attendance-stat-card.present-student::before {
    background: linear-gradient(180deg, #27ae60 0%, #2ecc71 100%);
}

/* Absent Student - Teal/Red theme */
.attendance-stat-card.absent-student {
    background: linear-gradient(135deg, rgba(48, 142, 135, 0.1) 0%, rgba(231, 76, 60, 0.08) 100%);
}

.attendance-stat-card.absent-student::before {
    background: linear-gradient(180deg, #308e87 0%, #e74c3c 100%);
}

/* Leave Student - Orange theme */
.attendance-stat-card.leave-student {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.1) 0%, rgba(243, 156, 18, 0.05) 100%);
}

.attendance-stat-card.leave-student::before {
    background: linear-gradient(180deg, #f39c12 0%, #e67e22 100%);
}

.attendance-stat-card .stat-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.attendance-stat-card .stat-date {
    font-size: 12px;
    color: #888;
}

.attendance-stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .attendance-stat-card .stat-value {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .support-center-card,
    .birthday-card {
        min-height: auto;
    }
    
    .attendance-stat-card {
        padding: 15px;
    }
    
    .attendance-stat-card .stat-value {
        font-size: 24px;
    }
    
    .attendance-stat-card .stat-name {
        font-size: 12px;
    }
    
    .attendance-stat-card .stat-date {
        font-size: 11px;
    }
}

/* ================= ATTENDANCE TREND CHART ================= */
.attendance-trend-card {
    border: none;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(48, 142, 135, 0.1);
}

.chart-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a3a5c;
}

.chart-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
}

.legend-color {
    width: 20px;
    height: 12px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.legend-color.present {
    background: linear-gradient(90deg, #27ae60 0%, #2ecc71 100%);
}

.legend-color.present-teacher {
    background: linear-gradient(90deg, #308e87 0%, #3fa89f 100%);
}

.legend-color.absent {
    background: linear-gradient(90deg, #e74c3c 0%, #ec7063 100%);
}

.legend-color.late {
    background: linear-gradient(90deg, #f39c12 0%, #f5b041 100%);
}

.legend-color.early-out {
    background: linear-gradient(90deg, #3498db 0%, #5dade2 100%);
}

.legend-color.early-out-teacher {
    background: linear-gradient(90deg, #9b59b6 0%, #af7ac5 100%);
}

#studentAttendanceChart,
#teacherAttendanceChart {
    min-height: 250px;
}

@media (max-width: 991px) {
    .chart-legend {
        gap: 10px;
    }
    
    .legend-item {
        font-size: 12px;
    }
}

/* ================= QUICK ACTIONS SECTION ================= */
.quick-actions-card {
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #0f4d47 0%, #1a6962 35%, #308e87 70%, #3fa89f 100%);
    box-shadow: 0 10px 40px rgba(48, 142, 135, 0.15);
    position: relative;
    overflow: hidden;
}

.quick-actions-card::before {
    content: '';
    position: absolute;
    top: -70px;
    right: -70px;
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    pointer-events: none;
}

.quick-actions-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.quick-actions-card .card-body {
    position: relative;
    z-index: 2;
}

.quick-action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.quick-action-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.action-icon svg {
    width: 22px;
    height: 22px;
    stroke: #ffffff;
}

.action-text {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.action-text strong {
    color: #ffffff;
}

@media (max-width: 768px) {
    .action-icon {
        width: 45px;
        height: 45px;
    }
    
    .action-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .action-text {
        font-size: 13px;
    }
    
    .quick-action-item {
        gap: 10px;
        padding: 8px;
    }
}

/* ================= PIE CHART CARDS ================= */
.pie-chart-card {
    border: none;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(48, 142, 135, 0.1);
}

.pie-chart-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a3a5c;
}

#classWiseChart,
#genderWiseChart {
    min-height: 300px;
}

/* ================= INCOME & EXPENSE SUMMARY CARDS ================= */
.summary-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(48, 142, 135, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 220px;
    position: relative;
    background: linear-gradient(135deg, #0f4d47 0%, #1a6962 35%, #308e87 70%, #3fa89f 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.summary-card::before {
    content: '';
    position: absolute;
    top: -70px;
    right: -70px;
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.summary-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.summary-card .card-body {
    position: relative;
    z-index: 2;
}

.summary-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 50px rgba(48, 142, 135, 0.3);
}

.summary-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}

.summary-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.summary-amount {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.amount-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amount-icon svg {
    width: 20px;
    height: 20px;
    stroke: #333;
}

.amount-value {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
}

.view-report {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.view-report:hover {
    color: #ffffff;
    opacity: 0.8;
    text-decoration: underline;
}

.amount-icon {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.amount-icon:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .summary-card {
        min-height: 180px;
    }
    
    .summary-title {
        font-size: 16px;
    }
    
    .summary-date {
        font-size: 11px;
    }
    
    .amount-value {
        font-size: 24px;
    }
    
    .amount-icon {
        width: 35px;
        height: 35px;
    }
    
    .amount-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* ================= SIDEBAR WEBSITE BUTTON ================= */
.sidebar-website-btn-wrapper {
    padding: 15px 20px;
    margin-top: auto;
    text-align: center;
}

.sidebar-website-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 16px;
    background: transparent;
    color: var(--theme-default);
    border: 1.5px solid var(--theme-default);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: auto;
    display: inline-flex;
}

.sidebar-website-btn:hover {
    background: var(--theme-default);
    color: #fff;
    box-shadow: 0 4px 12px rgba(48, 142, 135, 0.3);
    transform: translateY(-2px);
}

.sidebar-website-btn .website-icon {
    color: inherit;
    transition: all 0.3s ease;
}

.sidebar-website-btn .website-text {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

[data-layout="dark-only"] .sidebar-website-btn {
    background: rgba(48, 142, 135, 0.1);
    border-color: var(--theme-default);
    color: var(--theme-default);
}

[data-layout="dark-only"] .sidebar-website-btn:hover {
    background: var(--theme-default);
    color: #fff;
}

/* ================= SIDEBAR SECTION DIVIDER TITLES ================= */
.sidebar-main-title.section-divider {
    margin-top: 20px;
    padding-left: 5px;
}

.sidebar-main-title.section-divider > div {
    margin-left: -5px;
}



 .page-sidebar .sidebar-submenu li .submenu-title .iconly-Arrow-Right-2.icli {
     position: relative;
     left: 190px;
 }
