: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,
.signup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    background-color: #f8f9fa;
}

.form.login-form,
.form.signup-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #ffffff;
    padding: 40px;
    width: 490px;
    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: 18px;
    height: 18px;
    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;
}

.forgot-link {
    font-size: 0.9rem;
    color: #061730b2;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

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

.forgot-link:hover::after {
    width: 100%;
}

.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;
}

.signup-link {
    color: #061730b2;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

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

.signup-link:hover::after {
    width: 100%;
}

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

    .form.login-form,
    .form.signup-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;
}

/* 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);
    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
}

/* Onboarding Modal Styles */
.onboarding-modal {
    --onboarding-primary: #212529;
    --onboarding-secondary: #6c757d;
    --onboarding-success: #198754;
    --onboarding-background: #f8f9fa;
}

.onboarding-modal .modal-content {
    padding-bottom: 50px;
    height: 100%;
}

.onboarding-modal .modal-body {
    height: 380px;
    overflow-y: auto;
    padding: 1.5rem;
}

.onboarding-modal .modal-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #212529;
    text-align: center;
}

.onboarding-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    height: 100%;
}

.onboarding-image-container {
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* background-color: var(--onboarding-background); */
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.onboarding-image {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    animation: float 3s ease-in-out infinite;
}

.onboarding-image.loaded {
    opacity: 1;
}

.onboarding-text {
    text-align: center;
    max-width: 90%;
}

.onboarding-text h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #212529;
}

.onboarding-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 1.5rem;
}

.feature-highlight {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: #495057;
}

.feature-icon {
    color: #212529;
    width: 18px;
    height: 18px;
}

.onboarding-progress {
    display: flex;
    justify-content: center;
    gap: 10px;
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
}

.progress-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-indicator.active {
    background-color: #212529;
    transform: scale(1.2);
}

.progress-indicator.completed {
    background-color: #adb5bd;
}

.progress-indicator:hover {
    transform: scale(1.3);
    background-color: #212529;
}

.onboarding-final {
    text-align: center;
}

.onboarding-cta-container {
    margin-top: 1.5rem;
}

.onboarding-cta-button {
    background-color: #212529;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.onboarding-cta-button:hover {
    background-color: #343a40;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.onboarding-cta-button:active {
    transform: translateY(0);
}

.modal-btn-outline {
    background-color: transparent;
    border: 1px solid #dee2e6;
    color: #495057;
}

.modal-btn-outline:hover {
    background-color: #f8f9fa;
    border-color: #ced4da;
}

.onboarding-next-btn {
    min-width: 100px;
    background-color: #212529;
}

.onboarding-next-btn:hover {
    background-color: #343a40;
}

.onboarding-back-btn {
    min-width: 100px;
}

.onboarding-skip-btn {
    margin-right: auto;
}

/* Animation for step transitions */
.modal-body {
    transition: opacity 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.onboarding-step {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .onboarding-step {
        flex-direction: row;
        text-align: left;
        gap: 2.5rem;
    }

    .onboarding-image-container {
        flex: 0 0 45%;
    }

    .onboarding-text {
        flex: 0 0 50%;
        text-align: left;
    }

    .onboarding-final {
        flex-direction: column;
        text-align: center;
    }

    .onboarding-final .onboarding-text {
        text-align: center;
    }
}


.signup-success {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    text-align: center;
    max-width: 450px;
    margin: 0 auto;
}

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

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

.signup-success h2 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.signup-success p {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0.25rem 0;
    max-width: 350px;
    text-align: center;
}

.signup-success p:first-of-type {
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.signup-success p:last-child {
    margin-bottom: 0;
}

.inputForm {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle i {
    width: 20px;
    height: 20px;
    color: #666;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

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


@media (max-width: 1700px) {
    body {
        zoom: 0.75;
    }

    .content-container {
        height: 125vh !important;
    }

    .table-wrapper {
        max-height: calc(125vh - 450px) !important;
    }

    .login-container,
    .signup-container {
        height: 133vh !important;
    }

    .modal-container {
        max-height: 120vh !important;
    }

    .modal-body {
        max-height: 90vh !important;
    }
}

.not-found-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem;
    text-align: center;
}

.not-found-image-container {
    height: 420px;
    width: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.not-found-image {
    max-width: 420px;
    max-height: 420px;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    animation: float 3s ease-in-out infinite;
}

.not-found-image.loaded {
    opacity: 1;
}

.remember-me-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1px;
}

.remember-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #0c083f;
    cursor: pointer;
}

.remember-label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    user-select: none;
    padding-top: 1px;
}

.flex-row.justify-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0;
}

.align-center {
    align-items: center;
}