
.list-group-item {
    font-size: 12px !important;
}

.error {
    font-size: 0.85rem !important;
}

/* The snackbar - position it at the bottom and in the middle of the screen */
#snackbar {
    visibility: hidden; /* Hidden by default. Visible on click */
    min-width: 250px; /* Set a default minimum width */
    margin-left: -125px; /* Divide value of min-width by 2 */
    background-color: #333; /* Black background color */
    color: #fff; /* White text color */
    text-align: center; /* Centered text */
    border-radius: 2px; /* Rounded borders */
    padding: 16px; /* Padding */
    position: fixed; /* Sit on top of the screen */
    z-index: 10000; /* Add a z-index if needed */
    left: 50%; /* Center the snackbar */
    bottom: 30px; /* 30px from the bottom */
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
    visibility: visible; /* Show the snackbar */
    /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
    However, delay the fade out process for 2.5 seconds */
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}

.alert {
    min-width: 400px;
    position: fixed;
    right: 10px;
    top: 77px;
    z-index: 1000;
}

.img-fluid {
    width: 35px !important;
    height: auto;
    margin-right: 8px;
}

.card {
    border-radius: 15px !important;
    padding: 9px;
    box-shadow: 0px 0 30px rgb(1 41 112 / 10%);
}

.border-left-danger {
    border-left: 3px solid var(--bs-danger);
}

.border-right-danger {
    border-right: 3px solid var(--bs-danger);
}

/*.spinner {*/
/*    z-index: 10000;*/
/*    position: fixed;*/
/*    left: 50%;*/
/*    top: 50%;*/
/*    height: 60px;*/
/*    width: 60px;*/
/*    margin: 0px auto;*/
/*    -webkit-animation: rotation .6s infinite linear;*/
/*    -moz-animation: rotation .6s infinite linear;*/
/*    -o-animation: rotation .6s infinite linear;*/
/*    animation: rotation .6s infinite linear;*/
/*    border-left: 6px solid rgba(0, 174, 239, .15);*/
/*    border-right: 6px solid rgba(0, 174, 239, .15);*/
/*    border-bottom: 6px solid rgba(0, 174, 239, .15);*/
/*    border-top: 6px solid rgb(239, 0, 0);;*/
/*    border-radius: 100%;*/
/*}*/

/*@-webkit-keyframes rotation {*/
/*    from {*/
/*        -webkit-transform: rotate(0deg);*/
/*    }*/
/*    to {*/
/*        -webkit-transform: rotate(359deg);*/
/*    }*/
/*}*/

/*@-moz-keyframes rotation {*/
/*    from {*/
/*        -moz-transform: rotate(0deg);*/
/*    }*/
/*    to {*/
/*        -moz-transform: rotate(359deg);*/
/*    }*/
/*}*/

/*@-o-keyframes rotation {*/
/*    from {*/
/*        -o-transform: rotate(0deg);*/
/*    }*/
/*    to {*/
/*        -o-transform: rotate(359deg);*/
/*    }*/
/*}*/

/*@keyframes rotation {*/
/*    from {*/
/*        transform: rotate(0deg);*/
/*    }*/
/*    to {*/
/*        transform: rotate(359deg);*/
/*    }*/
/*}*/
.table {
    font-size: 12px !important;
}

.text11 {
    font-size: 11px !important;
}

.text12 {
    font-size: 12px !important;
}

.text13 {
    font-size: 13px !important;
}

.text14 {
    font-size: 14px !important;
}

.table-header {
    background-color: #1a1a1a;
    color: #facc15;
    font-weight: bold;
}

.sticky thead.sticky-header {
    background-color: #f5f5f5;
    position: fixed;
    top: 0;
    z-index: 1;
}

.theme-text {
    color: #facc15 !important;
}

.theme-background {
    background-color: #facc15 !important;
}

.state-card {
    background: #f4f4f4;
}

.folder-icon {
    font-size: 20px !important;
}

.page-breadcrumb {
    margin-bottom: 0.25rem !important;
}

.breadcrumb {
    margin-bottom: 0 !important;
}

.page-header {
    margin-bottom: 1.5rem !important;
}

/* Modern Template Styles */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Modern Header */
.modern-header {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.modern-toggle-btn {
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
}

.modern-toggle-btn:hover {
    background: rgba(250, 204, 21, 0.1);
    color: #facc15 !important;
    transform: scale(1.05);
}

.modern-logo .logo-img {
    transition: all 0.3s ease;
}

.modern-logo:hover .logo-img {
    transform: scale(1.02);
}

.modern-user-menu {
    padding: 8px 16px !important;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.modern-user-menu:hover {
    background: rgba(250, 204, 21, 0.05);
}

.modern-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(250, 204, 21, 0.1);
    transition: all 0.3s ease;
}

.modern-user-menu:hover .modern-avatar {
    border-color: #facc15;
    transform: scale(1.05);
}

.modern-dropdown {
    border-radius: 12px !important;
    padding: 8px !important;
    margin-top: 8px !important;
    min-width: 280px;
}

.modern-dropdown-header {
    padding: 16px !important;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.05) 0%, rgba(250, 204, 21, 0.02) 100%);
    border-radius: 8px;
    margin-bottom: 8px;
}

.modern-dropdown-item {
    padding: 10px 16px !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin: 2px 0;
}

.modern-dropdown-item:hover {
    background: rgba(250, 204, 21, 0.1) !important;
    transform: translateX(4px);
}

.modern-dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Modern Sidebar */
.sidebar {
    width: calc(16rem + 20px);
}

.modern-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.02);
}

.modern-sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 20px !important;
    margin: 4px 8px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #6c757d !important;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

 

.modern-sidebar-link:hover {
    background: rgba(250, 204, 21, 0.08);
    color: #facc15 !important;
    transform: translateX(4px);
    padding-left: 24px !important;
}

.modern-sidebar-link:hover::before {
    transform: scaleY(1);
}

.modern-sidebar-link.active {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.15) 0%, rgba(250, 204, 21, 0.08) 100%);
    color: #facc15 !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(250, 204, 21, 0.15);
}

.modern-sidebar-link.active::before {
    transform: scaleY(1);
}

.modern-sidebar-link i {
    transition: all 0.3s ease;
}

.modern-sidebar-link:hover i {
    transform: scale(1.1);
}

.sidebar-chevron {
    transition: transform 0.3s ease;
    margin-left: auto;
}

[aria-expanded="true"] .sidebar-chevron {
    transform: rotate(180deg);
}

.modern-submenu {
    background: rgba(250, 204, 21, 0.03);
    border-radius: 8px;
    
}

.modern-submenu .modern-sidebar-link {
    padding-left: 40px !important;
    font-size: 0.9rem;
}

.modern-submenu .modern-sidebar-link:hover {
    padding-left: 32px !important;
}

/* Sidebar Link Title - Keep text on one line with ellipsis for long text */
.sidebar-link-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}

/* Modern Page Content */
.modern-page-content {
    background: #f8f9fa;
    min-height: calc(100vh - 80px);
}

.modern-page-header {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
}

.modern-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

/* Modern Footer */
.modern-footer {
    background: white !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Modern Cards */
.card {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px);
}

/* Modern Buttons - All Buttons */
.btn,
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.btn-light,
.btn-dark,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-light,
.btn-outline-dark {
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    position: relative;
    overflow: hidden;
}

.btn::before,
.btn-primary::before,
.btn-secondary::before,
.btn-success::before,
.btn-danger::before,
.btn-warning::before,
.btn-info::before,
.btn-light::before,
.btn-dark::before,
.btn-outline-primary::before,
.btn-outline-secondary::before,
.btn-outline-success::before,
.btn-outline-danger::before,
.btn-outline-warning::before,
.btn-outline-info::before,
.btn-outline-light::before,
.btn-outline-dark::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
}

.btn:hover::before,
.btn-primary:hover::before,
.btn-secondary:hover::before,
.btn-success:hover::before,
.btn-danger:hover::before,
.btn-warning:hover::before,
.btn-info:hover::before,
.btn-light:hover::before,
.btn-dark:hover::before,
.btn-outline-primary:hover::before,
.btn-outline-secondary:hover::before,
.btn-outline-success:hover::before,
.btn-outline-danger:hover::before,
.btn-outline-warning:hover::before,
.btn-outline-info:hover::before,
.btn-outline-light:hover::before,
.btn-outline-dark:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-success:hover,
.btn-danger:hover,
.btn-warning:hover,
.btn-info:hover,
.btn-light:hover,
.btn-dark:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-success:hover,
.btn-outline-danger:hover,
.btn-outline-warning:hover,
.btn-outline-info:hover,
.btn-outline-light:hover,
.btn-outline-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

.btn:active,
.btn-primary:active,
.btn-secondary:active,
.btn-success:active,
.btn-danger:active,
.btn-warning:active,
.btn-info:active,
.btn-light:active,
.btn-dark:active,
.btn-outline-primary:active,
.btn-outline-secondary:active,
.btn-outline-success:active,
.btn-outline-danger:active,
.btn-outline-warning:active,
.btn-outline-info:active,
.btn-outline-light:active,
.btn-outline-dark:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.btn-primary {
    background: #1a1a1a !important;
    border: none !important;
    color: #facc15 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #facc15 !important;
    color: #1a1a1a !important;
    border: none !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 204, 21, 0.4) !important;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(250, 204, 21, 0.3) !important;
}

.btn-secondary {
    background: #facc15 !important;
    border: none !important;
    color: #1a1a1a !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #1a1a1a !important;
    color: #facc15 !important;
    border: none !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 204, 21, 0.4) !important;
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba (250, 204, 21, 0.3) !important;
}

/* Yellow Outline Button for Filter & Sort - Matches Primary Button Style */
.btn-outline-warning {
    background: #1a1a1a !important;
    border: none !important;
    color: #facc15 !important;
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3) !important;
    transition: all 0.3s ease;
}

.btn-outline-warning:hover {
    background: #eab308 !important;
    color: #1a1a1a !important;
    border: none !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 204, 21, 0.5) !important;
}

.btn-outline-warning:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(250, 204, 21, 0.4) !important;
}

/* Modern Tables */
.table {
    border-radius: 12px;
    overflow: hidden;
}

.table thead {
    background: #facc15 !important;
    color: #000000 !important;
}

.table thead th {
    border: none;
    padding: 16px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: rgba(250, 204, 21, 0.05);
    transform: scale(1.01);
}

/* Modern Form Elements */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px 16px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #facc15;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.1);
    transform: translateY(-1px);
}

/* Modern Breadcrumbs */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: #facc15;
    text-decoration: none;
    transition: all 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #1a1a1a;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 500;
}

/* Modern Snackbar */
#snackbar {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    padding: 16px 24px;
    min-width: 300px;
}

/* Modern Modal */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 20px 24px;
    border-radius: 16px 16px 0 0;
}

.modal-body {
    padding: 24px;
}

/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

/* Contract Page Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

.contract-icon {
    transition: all 0.3s ease;
}

.contract-icon:hover {
    transform: rotate(360deg) scale(1.2);
}

.btn-animated {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-animated::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-animated:hover::before {
    width: 300px;
    height: 300px;
}

.table-row-animated {
    transition: all 0.3s ease;
}

.table-row-animated:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.2);
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .modern-heading {
        font-size: 1.5rem;
    }
    
    .modern-sidebar-link {
        padding: 10px 16px !important;
    }
    
    .modern-user-menu .d-none.d-md-block {
        display: none !important;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #facc15;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1a1a1a;
}

/* Card Header - Reduced Padding */
.card-header {
    padding: 1rem 1.5rem !important;
}

/* Transparent Card */
.card-transparent {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.card-transparent .card-header {
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.card-transparent .card-body {
    background: transparent !important;
}

/* Custom btn-sm - Make buttons smaller */
.btn-sm {
    padding: 0.2rem 0.5rem !important;
    font-size: 0.8rem !important;
    line-height: 2 !important;
    border-radius: 0.25rem !important;
}

.btn-sm i {
    font-size: 0.7rem !important;
    margin-right: 0.2rem;
}

.btn-sm .fa,
.btn-sm .fas,
.btn-sm .far,
.btn-sm .fal {
    font-size: 0.7rem !important;
}

/* Responsive Table Improvements */
.table-responsive {
    position: relative;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
}

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

/* Better table responsiveness on mobile */
@media (max-width: 768px) {
    .table-responsive {
        border: 1px solid #dee2e6;
    }
    
    .table-responsive table {
        font-size: 0.8rem;
    }
    
    .table-responsive th,
    .table-responsive td {
        padding: 0.5rem 0.4rem;
        white-space: nowrap;
    }
    
    .table-responsive .btn-group {
        flex-direction: column;
    }
    
    .table-responsive .btn-group .btn {
        margin-bottom: 2px;
    }
}

@media (max-width: 576px) {
    .table-responsive table {
        font-size: 0.75rem;
    }
    
    .table-responsive th,
    .table-responsive td {
        padding: 0.4rem 0.3rem;
    }
    
    .table-responsive .badge {
        font-size: 0.65rem;
        padding: 0.15em 0.35em;
    }
}

/* Notification Styles — panel sits above page content */
.modern-header {
    position: relative;
    z-index: 1080;
    overflow: visible;
}

.modern-header .navbar {
    overflow: visible;
}

.modern-header .nav-item {
    position: relative;
}

.notification-panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: min(380px, calc(100vw - 1.5rem));
    max-height: min(70vh, 520px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    z-index: 1090;
    overflow: hidden;
}

.notification-panel[hidden] {
    display: none !important;
}

.notification-panel-header {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    flex-shrink: 0;
}

.notification-panel-footer {
    padding: 0.65rem 0.85rem;
    border-top: 1px solid #e2e8f0;
    background: #fff;
    flex-shrink: 0;
}

.notification-item {
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

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

.notification-item:hover {
    background-color: #f8f9fa !important;
}

.notification-item.bg-light {
    background-color: #f1f5f9 !important;
}

.notification-badge-count {
    font-size: 0.65rem;
    padding: 0.25em 0.5em;
    min-width: 18px;
    text-align: center;
}

#notificationToggle {
    position: relative;
    line-height: 1;
}

.notification-list {
    max-height: none;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 120px;
}

.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.notification-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Floating Filter Button - Common styles for all dashboards */
.floating-filter-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.floating-filter-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.7);
    background: linear-gradient(135deg, #fd7e14 0%, #e55a00 100%);
}

.floating-filter-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-filter-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 18px;
    }
}

/* Cursor utility for attachment cards */
.attachment-card.cursor-pointer {
    cursor: pointer;
}