:root {
    --font-family: 'Poppins', sans-serif;
    --btn-dark-background-color: #212529;
    --btn-dark-hover-background-color: #2c3238;
    --btn-dark-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --btn-light-background-color: #fff;
    --btn-light-border-color: #dee2e6;
    --btn-light-hover-background-color: #e9ecef;
    --btn-light-hover-border-color: #ced4da;
    --content-title-font-size: 2rem;
    --content-title-font-weight: 500;
    --content-title-color: #151717;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.header-button {
    padding-left: 1.4rem
}

/* Remove all default browser focus styles */
input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: none !important;
    box-shadow: none !important;
}


/* Layout structure */
.wrapper {
    width: 100%;
}

.main-container {
    display: flex;
    width: 100%;
}

/* Utility classes */
.d-none {
    display: none !important;
}

/* Login page specific styles */

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Container fluid override */
.container-fluid {
    padding: 0 !important;
    width: 100%;
}

/* Optional: Make the sidebar scrollable independently if content is too tall */
.sidebar .flex-grow-1 {
    overflow-y: auto;
    height: calc(100vh - 100px);
    /* adjust based on your header height */
}

/* Add this to your existing CSS */
.sidebar-divider {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.bottom-menu {
    margin-top: auto;
    padding-bottom: 1rem;
}

/* login page */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    background-color: #f8f9fa;
}

.form.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #ffffff;
    padding: 40px;
    width: 440px;
    border-radius: 12px;
    font-family: var(--font-family);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}


.flex-column>label {
    color: #495057;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.inputForm {
    border: 1.5px solid #e9ecef;
    border-radius: 8px;
    height: 52px;
    display: flex;
    align-items: center;
    padding-left: 15px;
    transition: all 0.2s ease-in-out;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.inputForm::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #061730b2;
    transition: width 0.3s ease;
}

.inputForm.focused::after {
    width: 100%;
}

.inputForm:focus-within {
    border-color: #e9ecef;
    background-color: #fff;
}

.input-icon {
    width: 22px;
    height: 22px;
    color: #6c757d;
    transition: color 0.2s ease;
}

.inputForm.focused .input-icon {
    color: #061730b2;
}

.input {
    margin-left: 10px;
    border-radius: 8px;
    border: none;
    width: 100%;
    height: 100%;
    background-color: transparent;
    font-family: var(--font-family);
    font-size: 0.95rem;
    color: #212529;
}

.input::placeholder {
    color: #adb5bd;
    transition: opacity 0.2s ease;
}

.input:focus::placeholder {
    opacity: 0.7;
}

.flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 5px 0;
}

.justify-end {
    justify-content: flex-end;
}


.button-submit {
    margin: 25px 0 15px 0;
    background-color: #212529;
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    height: 52px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    font-family: var(--font-family);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-submit:hover {
    background-color: #343a40;
}

.button-submit:active {
    transform: scale(0.98);
}

.button-submit .button-loader {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    opacity: 0;
    transition: opacity 0.2s;
    animation: spin 0.8s linear infinite;
    pointer-events: none;
}

.button-submit.loading .button-loader {
    opacity: 1;
}

.button-submit.loading span {
    opacity: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.p {
    text-align: center;
    color: #495057;
    font-size: 0.95rem;
    margin: 10px 0 0 0;
}

/* Responsive adjustments */
@media (max-width: 500px) {

    .form.login-form {
        width: 90%;
        padding: 30px;
    }

    .login-title {
        font-size: 1.8rem;
    }
}

/* Add subtle animation for the form */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Enhanced Login Page Styles */
.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
    text-align: center;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.logo-container svg {
    width: 13.5rem;
}

/* Password toggle styles */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    transition: color 0.2s ease;
    z-index: 10;
    width: 22px;
    height: 22px;
}

.password-toggle:hover {
    color: #061730b2;
}

.inputForm.password-field {
    padding-right: 50px;
}

.password-icon {
    width: 18px;
    height: 18px;
    color: inherit;
}

/* Add these at the end of your CSS file */

#content {
    transition: opacity 0.3s ease-in-out;
}

.custom-loader {
    width: 50px;
    height: 50px;
    --c: radial-gradient(farthest-side, #000000 92%, #0000);
    background: var(--c) 50% 0,
        var(--c) 50% 100%,
        var(--c) 100% 50%,
        var(--c) 0 50%;
    background-size: 10px 10px;
    background-repeat: no-repeat;
    animation: s8 1s infinite;
    position: relative;
}

.custom-loader::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: 3px;
    background: repeating-conic-gradient(#0000 0 35deg, #000000 0 90deg);
    -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 3px), #000 0);
    mask: radial-gradient(farthest-side, #0000 calc(100% - 3px), #000 0);
    border-radius: 50%;
}

@keyframes s8 {

    100% {
        transform: rotate(.5turn)
    }
}

.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90vh;
}

.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90vh;
}

/* custom scrollbar */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #8888886b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666
}

.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.success-icon {
    color: #22c55e;
    width: 48px;
    height: 48px;
}

/* Count badge styling */
.count-badge {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 400;
    color: #64748b;
    margin-left: 0.65rem;
    background-color: #f1f5f9;
    padding: 0.25rem 0.85rem;
    border-radius: 9999px;
}

.count-badge #visibleCount {
    font-weight: 600;
    color: #0f172a;
}

.count-badge .total-count {
    display: none;
}

.count-badge.filtered .total-count {
    display: inline;
}

.count-badge.filtered .total-count::before {
    content: " of ";
    font-weight: 400;
    color: #64748b;
    margin: 0 0.3rem;
}

.empty-state-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #30325b;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.empty-state-button:hover {
    background-color: #3c4072;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 80, 147, 0.2);
}

.empty-state-button:active {
    transform: translateY(0);
}

.empty-state-button i {
    width: 20px;
    height: 20px;
}

.details-summary-value a {
    color: #4c5093 !important;
    text-decoration: none !important;
}