/* Base Styles */
:root {
    --body-bg: #f5f7fb;
    --text-main: #161f38;

    --accent: #4895ef;

    --primary-color: #4361ee;
    --primary-light: #eef2ff;
    --primary-dark: #3a56d4;

    --secondary-color: #3f37c9;
    --secondary-light: #eef2ff;
    --secondary-dark: #e9ecef;

    --success-color: #4cc9f0;
    --success-light: #e6f7fd;
    --success-dark: #4cc9f0;

    --danger-color: #f72585;
    --danger-light: #fde8f1;
    --danger-dark: #f72585;

    --warning-color: #f8961e;
    --warning-light: #fef3e6;
    --warning-dark: #f8961e;

    --info-color: #4895ef;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --gray-light: #e9ecef;
    --gray-dark: #495057;
    --white-color: #ffffff;

    --border-radius: 8px;
    --transition: all 0.3s ease;
    /*--transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);*/

    --sidebar-width: 280px;
    --sidebar-width: 230px;
    --header-height: 80px;

    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);

    --radius: 10px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

.dark-theme {
    --body-bg: #272935;
    --text-main: #f9f9fa;
    --dark-color: #f8f9fa;
    --light-color: #212529;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--body-bg);
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Main Content */
.app-main {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 30px;
    min-height: calc(100vh - var(--header-height));
    transition: var(--transition);
}

.hidden {
    display: none !important;
}

@media (max-width: 1439px) {

}

@media (max-width: 1199px) {

}

@media (max-width: 767px) {

}

@media (max-width: 575px) {
    .header-actions {
        display: none;
    }
}

hr {
    margin-top: 30px;
    margin-bottom: 30px;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, .1);
}


.page-actions {
    display: flex;
    gap: 10px;
}

.w-100 {
    width: 100%;
}





/* Modern Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    position: relative;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}
/*================================================
=========== Scrollbar css
================================================*/
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.scroll::-webkit-scrollbar {
    width: 5px;
}

.scroll::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.scroll::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px #d7d7d7;
}

/*================================================
=========== Buttons css
================================================*/
.theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 500;
    border: 1px solid;
    cursor: pointer;
    transition: var(--transition);
}
.theme-btn:hover {
    transform: translateY(-2px);
}
.theme-btn .btn-icon {
    width: auto; 
    height: auto; 
    border: none;
}
.theme-btn .btn-icon i {
    width: 1.5em;
    height: 1.5em;
}

.primary-btn {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}
.primary-btn:hover {
    background: var(--primary-dark);
}
.primary-btn .btn-icon i {
    background: var(--body-bg);
}

.secondary-btn {
    border-color: #ddd;
    background: #fff;
    color: var(--dark-color);
}
.secondary-btn:hover {
    background: var(--secondary-dark);
}
.secondary-btn .btn-icon i {
    background: var(--dark-color);
}

.success-btn {
    border-color: var(--success-color);
    background: var(--success-color);
    color: #fff;
}
.success-btn:hover {
    background: var(--success-dark);
}
.success-btn .btn-icon i {
    background: #ffffff;
}

.danger-btn {
    border-color: var(--danger-color);
    background: var(--danger-color);
    color: #fff;
}
.danger-btn:hover {
    background: var(--danger-dark);
}
.danger-btn .btn-icon i {
    background: #ffffff;
}

.warning-btn {
    border-color: var(--warning-color);
    background: var(--warning-color);
    color: #fff;
}
.warning-btn:hover {
    background: var(--warning-dark);
}
.warning-btn .btn-icon i {
    background: #ffffff;
}

.outline-primary-btn {
    border-color: var(--primary-color);
    background: transparent;
    color: var(--primary-color);
}
.outline-primary-btn:hover {
    background: var(--primary-color);
    color: #fff;
}
.outline-primary-btn .btn-icon i {
    background: var(--primary-color);
}
.outline-primary-btn:hover .btn-icon i {
    background: #fff;
}

.outline-success-btn {
    border-color: var(--success-color);
    background: transparent;
    color: var(--success-color);
}
.outline-success-btn:hover {
    background: var(--success-color);
    color: #fff;
}
.outline-success-btn .btn-icon i {
    background: var(--success-color);
}
.outline-success-btn:hover .btn-icon i {
    background: #fff;
}

.outline-danger-btn {
    border-color: var(--danger-color);
    background: transparent;
    color: var(--danger-color);
}
.outline-danger-btn:hover {
    background: var(--danger-color);
    color: #fff;
}
.outline-danger-btn .btn-icon i {
    background: var(--danger-color);
}
.outline-danger-btn:hover .btn-icon i {
    background: #fff;
}

.outline-warning-btn {
    border-color: var(--warning-color);
    background: transparent;
    color: var(--warning-color);
}
.outline-warning-btn:hover {
    background: var(--warning-color);
    color: #fff;
}
.outline-warning-btn .btn-icon i {
    background: var(--warning-color);
}
.outline-warning-btn:hover .btn-icon i {
    background: #fff;
}

/*================================================
=========== Toast Container css
================================================*/
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Toast Base Styles */
.toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    position: relative;
    overflow: hidden;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* Toast Types */
.toast-success {
    background-color: var(--body-bg);
    color: var(--success-color);
    border-left: 5px solid var(--success-color);
}

.toast-danger {
    background-color: var(--body-bg);
    color: var(--danger-color);
    border-left: 5px solid var(--danger-color);
}

.toast-warning {
    background-color: var(--body-bg);
    color: var(--warning-color);
    border-left: 5px solid var(--warning-color);
}

.toast-message {
    flex: 1;
    font-weight: 500;
    padding-right: 15px;
}

.toast-close {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.toast-close:hover {
    color: #555;
}

/* Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.toast-progress-bar {
    height: 100%;
    width: 100%;
    animation: progressBar 5s linear forwards;
}

.toast-success .toast-progress-bar {
    background: var(--success-color);
}
.toast-danger .toast-progress-bar {
    background: var(--danger-color);
}
.toast-warning .toast-progress-bar {
    background: var(--warning-color);
}

@keyframes progressBar {
    0% { width: 100%; }
    100% { width: 0%; }
}

/*================================================
=========== Modal css
================================================*/

/* Modal Container */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.custom-modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Modal Header */
.modal-header {
    position: relative;
    z-index: 10;
}

.header-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-icon {
    font-size: 1.75rem;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.close-btn svg {
    width: 20px;
    height: 20px;
}

/* Modal Body */
.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
}



/* Buttons */
.add-item-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid;
}
.add-item-btn {
    background: var(--light-color);
    color: var(--primary-color);
    width: 100%;
}
.add-item-btn:hover {
    background: #e9e9f7;
}


/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Modal Footer */
.modal-footer {
    padding: 1rem 1.5rem;
    background: var(--light-color);
    border-top: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.modal-footer .submit-btn {
    margin-left: 15px;
}

.footer-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--gray-color);
}

.footer-note svg {
    flex-shrink: 0;
}

/* Item Row Container */
.item-row {
    margin-bottom: 1.5rem;
    animation: itemFadeIn 0.3s ease-out;
}

@keyframes itemFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Item Card */
.item-card {
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.item-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.1);
}

/* Item Header */
.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed var(--light-gray);
}

.item-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.item-icon {
    color: var(--primary-color);
}

.item-title h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.item-number {
    color: var(--primary-color);
    font-weight: 700;
}

/* Remove Item Button */
.remove-item-btn {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
    cursor: pointer;
    transition: var(--transition);
}

.remove-item-btn:hover {
    background: rgba(214, 48, 49, 0.1);
    color: var(--danger-color);
}

.remove-item-btn svg {
    width: 16px;
    height: 16px;
}

/* Item Grid Layout */
.item-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    .item-grid {
        grid-template-columns: 1fr;
    }
}

/* Item Input Fields */
.item-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.item-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

/* Item Actions */
.item-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.item-action-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: var(--light-color);
    border: none;
    border-radius: 6px;
    font-size: 0.8125rem;
    color: var(--gray-color);
    cursor: pointer;
    transition: var(--transition);
}

.item-action-btn:hover {
    background: #e9e9f7;
    color: var(--primary-color);
}

.item-action-btn svg {
    width: 14px;
    height: 14px;
}

/* Specific Item Actions */
.duplicate-item:hover {
    color: var(--success-color);
}

.move-up-item:hover,
.move-down-item:hover {
    color: var(--secondary-color);
}

/* Input Icons for Items */
.item-grid .input-with-icon .input-icon {
    left: 1rem;
}

.item-grid .amount-input {
    position: relative;
}

.item-grid . x .currency-symbol {
    left: 1rem;
}

.item-grid .amount-input input {
    padding-left: 2.5rem;
    padding-right: 3.5rem;
}

.item-grid .amount-input .currency-code {
    right: 1rem;
}

/* Animation for Added/Removed Items */
.item-row-enter {
    opacity: 0;
    transform: translateY(10px);
}

.item-row-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.item-row-exit {
    opacity: 1;
}

.item-row-exit-active {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .modal-container {
        width: 95%;
        max-height: 85vh;
    }

    .form-actions {
        flex-direction: column;
    }
}

/*================================================
=========== Form Css
================================================*/
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark-color);
}

.tooltip-icon {
    cursor: help;
    color: var(--gray-color);
    font-size: 0.75rem;
    position: relative;
}

.tooltip-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-color);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 100;
}

/* Form Inputs */
.form-input,
.form-select,
.form-textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: var(--transition);
    background-color: white;
    width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.form-input::placeholder {
    color: var(--gray-color);
    opacity: 0.6;
}

/* Special Input Styles */
.select-wrapper {
    position: relative;
}

.date-input,
.amount-input,
.input-with-icon {
    position: relative;
    /*padding: 14px 15px 14px 45px;*/
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 15px;
    color: var(--gray-color);
    font-size: 20px;
    z-index: 99;
}

.amount-input {
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.amount-input input {
    padding-left: 2.5rem;
    padding-right: 3.5rem;
}

.currency-code {
    position: absolute;
    right: 1rem;
    font-size: 0.75rem;
    color: var(--gray-color);
    background: var(--gray-light);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Textarea */
.textarea-wrapper {
    position: relative;
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

.textarea-counter {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    font-size: 0.75rem;
    color: var(--gray-color);
    background: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Divider */
.form-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.form-divider::before,
.form-divider::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background: var(--gray-light);
}

.divider-text {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gray-color);
    letter-spacing: 0.05em;
}

.form-group {
    margin-bottom: 1rem;
}

.col-form-label {
    padding-top: calc(.375rem + 1px);
    padding-bottom: calc(.375rem + 1px);
    margin-bottom: 0;
    font-size: inherit;
    line-height: 1.5;
}

.form-control {
    display: block;
    width: 100%;
    padding: 14px 15px 14px 45px;
    font-size: 1rem;
    color: #495057;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    background: var(--light-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
    outline: none;
}

.single-line {
    background-color: var(--body-bg);
    background-image: none;
    border: 1px solid #e5e6e7;
    border-radius: 1px;
    color: inherit;
    display: block;
    padding: 6px 12px;
    transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s;
    width: 100%;
}

select.form-control:not([size]):not([multiple]) {
    height: initial;
}

.form-control.error {
    border: 1px dotted #cc5965;
}

.custom-file {
    position: relative;
    display: inline-block;
    width: 100%;
    height: calc(2.25rem + 2px);
    margin-bottom: 0;
}

.custom-file-input {
    position: relative;
    z-index: 2;
    width: 100%;
    height: calc(2.25rem + 2px);
    margin: 0;
    opacity: 0;
}

.custom-file-label {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    height: calc(2.25rem + 2px);
    padding: .375rem .75rem;
    line-height: 1.5;
    color: #495057;
    background-color: var(--body-bg);
    border: 1px solid #ced4da;
    border-radius: .25rem;
}

.custom-file-label {
    padding: .5rem .75rem;
}

::placeholder,
.custom-file-label {
    color: rgba(103, 106, 108, 0.5) !important;
}

.custom-file-label {
    border-color: #e5e6e7;
    border-radius: 0;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-file-label::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: block;
    height: calc(calc(2.25rem + 2px) - 1px * 2);
    padding: .375rem .75rem;
    line-height: 1.5;
    color: #495057;
    content: "Browse";
    background-color: #e9ecef;
    border-left: 1px solid #ced4da;
    border-radius: 0 .25rem .25rem 0;
}

.custom-file-label::after {
    padding: .5rem .75rem;
}

.custom-file-label::after {
    border-radius: 0;
    font-size: 13px;
    border-color: #e5e6e7;
}

.custom-file-label::after {
    content: "Browse";
}

.hr-line-dashed {
    border-top: 1px dashed #e7eaec;
    color: #ffffff;
    background-color: var(--body-bg);
    height: 1px;
    margin: 20px 0;
}

.input-group {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: stretch;
    align-items: stretch;
    width: 100%;
}

.input-group-append,
.input-group-prepend {
    display: -ms-flexbox;
    display: flex;
}

.input-group-prepend {
    margin-right: -1px;
}

.input-group>.custom-file,
.input-group>.custom-select,
.input-group>.form-control {
    position: relative;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    width: 1%;
    margin-bottom: 0;
}

.input-group>.custom-select:not(:first-child),
.input-group>.form-control:not(:first-child) {
    /*border-top-left-radius: 0;
    border-bottom-left-radius: 0;*/
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 15px;
    color: var(--gray-color);
    cursor: pointer;
    font-size: 20px;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.password-field {
    -webkit-text-security: disc;
}

.password-field.password-visible {
    -webkit-text-security: none;
}

label.error {
    color: #cc5965;
    display: inline-block;
    margin-left: 5px;
}

/* Minimal Premium Design */
.minimal-toggle-group {
    display: flex;
    gap: 1px;
    background: #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.minimal-toggle-option {
    flex: 1;
    margin: 0;
}

.minimal-toggle-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.minimal-toggle-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--body-bg);
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 44px;
}

.minimal-toggle-content i {
    font-size: 16px;
    transition: all 0.3s ease;
}

/* Active State */
.minimal-toggle-option input[type="radio"]:checked~.minimal-toggle-content {
    background: #1ab394;
    color: var(--body-bg);
    box-shadow: 0 2px 8px rgba(26, 179, 148, 0.3);
}

.minimal-toggle-option input[type="radio"]:checked~.minimal-toggle-content i {
    color: var(--body-bg);
}

/* Hover Effects */
.minimal-toggle-option:hover .minimal-toggle-content {
    background: #f8f9fa;
    color: #1ab394;
}

.minimal-toggle-option:hover .minimal-toggle-content i {
    color: #1ab394;
}

/* Focus State */
.minimal-toggle-option input[type="radio"]:focus~.minimal-toggle-content {
    outline: 2px solid #1ab394;
    outline-offset: -2px;
}



@media (min-width: 768px) {
    .form-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}
/*================================================
=========== ibox Css
================================================*/
.ibox {
    background: var(--white-color);
    border-radius: var(--radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}
.ibox:last-child {
    margin-bottom: 0;
}

.ibox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: solid 1px rgb(0 0 0 / 10%);
}

.ibox-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}
.ibox-header .ibox-actions {
    display: flex;
    gap: 10px;
}
.ibox-header .ibox-actions select {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background: var(--white-color);
    font-size: 14px;
    cursor: pointer;
}

.ibox-body {
    position: relative;
    padding: 15px;
}

@media (max-width: 768px) {
    .ibox-header {
        flex-wrap: wrap;
        gap: 20px;
    }
}

/*================================================
=========== Table Css
================================================*/
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    border-radius: var(--radius-sm);
}

.table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
    background-color: transparent;
}

table {
    border-collapse: collapse;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}
.table tbody tr:hover {
    background: #f8f8f8;
}

.table td,
.table th {
    padding: .75rem;
    border-top: 1px solid #dee2e6;
    text-align: left;
}

.table th {
    font-weight: normal;
    color: #a0a1a2;
}

.table>thead>tr>th {
    /*border-bottom: 1px solid #DDDDDD;*/
    vertical-align: bottom;
}

.table>thead>tr>th,
.table>tbody>tr>th,
.table>tfoot>tr>th,
.table>thead>tr>td,
.table>tbody>tr>td,
.table>tfoot>tr>td {
    border-top: 1px solid #e7eaec;
    line-height: 1.42857;
    padding: 8px;
    vertical-align: middle;
}

.table>caption+thead>tr:first-child>td,
.table>caption+thead>tr:first-child>th,
.table>colgroup+thead>tr:first-child>td,
.table>colgroup+thead>tr:first-child>th,
.table>thead:first-child>tr:first-child>td,
.table>thead:first-child>tr:first-child>th {
    border-top: 0;
}

table>tbody>tr>td>img {
    width: 44px;
    height: 44px;
}




.table thead th {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
    padding: 15px;
    border: none;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background-color: rgba(67, 97, 238, 0.03);
    transform: translateX(2px);
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
    border-top: 1px solid var(--gray-light);
    color: var(--dark);
}
/*================================================
=========== Header Css
================================================*/

/* Header Styles */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--body-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    padding: 0 30px;
    z-index: 1000;
    transition: var(--transition);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle:hover {
    background-color: var(--primary-light);
}

.menu-toggle i {
    font-size: 22px;
    color: var(--dark-color);
}

.logo {
    height: 36px;
}

.logo img {
    height: 100%;
}

.search-bar {
    position: relative;
    width: 400px;
    margin-left: 30px;
}

.search-bar input {
    width: 100%;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--gray-light);
    padding: 0 20px 0 45px;
    font-size: 14px;
    transition: var(--transition);
    background-color: #f8f9fa;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
    background-color: var(--body-bg);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 10px;
    transition: var(--transition);
}

.user-profile:hover {
    background-color: var(--primary-light);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(67, 97, 238, 0.2);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark-color);
}

.user-role {
    font-size: 12px;
    color: var(--gray-color);
}

/* Sidebar Styles */
.app-sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--body-bg);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.03);
    z-index: 900;
    transition: var(--transition);
    overflow-y: auto;
    padding: 20px 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0 10px;
}

.menu-title {
    padding: 15px 15px 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-color);
    font-weight: 600;
}

.menu-item {
    margin-bottom: 5px;
    border-radius: 8px;
    overflow: hidden;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.menu-link:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.menu-link.active {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    font-weight: 500;
}

.menu-link.active:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--primary-color);
    border-radius: 0 3px 3px 0;
}

.menu-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 18px;
}

.menu-text {
    flex: 1;
}

.menu-badge {
    background-color: var(--primary-color);
    color: white;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 10px;
}

/*================================================
=========== Footer Css
================================================*/
.app-footer {
    /* position: fixed; */
    margin-left: calc(var(--sidebar-width) + 30px);
    padding: 20px 30px;
    background: var(--body-bg);
    border-top: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    font-size: 13px;
    color: var(--gray-color);
}

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-link {
    color: var(--gray-color);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
  .app-footer {
      margin-left: 0;
  }
}
/*================================================
=========== Sidebar Menu
================================================*/
#sidebar_menu {
    position: fixed;
    top: 0;
    bottom: 0;
    padding-top: 100px;
    z-index: 5;
    height: calc(100% - 100px);
    transition: border-radius .3s;
}

.menu .main-menu {
    width: 120px;
    height: calc(100% - 100px);
    background: var(--body-bg);
    z-index: 3;
    position: fixed;
    padding-top: 10px;
    padding-bottom: 10px;
    left: 0;
}

.menu .main-menu .scroll {
    padding-right: unset;
    margin-right: unset;
    height: 100%;
    overflow-y: scroll;
}

.menu .main-menu ul {
    margin-bottom: initial;
}

.menu .main-menu ul li {
    position: relative;
}

.menu .main-menu ul li a {
    height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    border-bottom: 1px solid #f3f3f3;
    color: #3a3a3a;
    transition: color .3s;
    transition: background .3s;
    text-decoration: none;
}

.menu .main-menu ul li.active a {
    color: #00365a;
}

.menu .main-menu ul li.active:after {
    content: " ";
    background: #00365a;
    color: var(--body-bg);
    border-radius: 10px;
    position: absolute;
    width: 6px;
    height: 90px;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
}

.menu .main-menu ul li i {
    font-size: 32px;
    line-height: 42px;
    margin-bottom: 6px;
}

.menu .main-menu ul li span {
    text-align: center;
    padding: 0 10px;
    line-height: 14px;
}

.main-show-temporary .main-menu {
    transform: translateX(0) !important;
}


@media (max-width: 1439px) {
    .menu {
        padding-top: 90px;
        height: calc(100% - 90px);
    }

    .menu .main-menu {
        width: 110px;
        height: calc(100% - 90px);
    }
}

@media (max-width: 1199px) {
    .menu {
        padding-top: 80px;
        height: calc(100% - 80px);
    }

    .menu .main-menu {
        width: 100px;
        height: calc(100% - 80px);
    }
}

@media (max-width: 767px) {

    #sidebar_menu {
        padding-top: 80px;
        height: calc(100% - 80px);
    }

    .menu {
        padding-top: 70px;
        height: calc(100% - 70px);
        box-shadow: 0 1px 15px rgba(0, 0, 0, .04), 0 1px 6px rgba(0, 0, 0, .04);
    }

    .menu .main-menu {
        width: 90px;
        height: calc(100% - 70px);
        transform: translateX(-90px);
    }

    .menu .main-menu ul li a {
        height: 90px;
    }

    .menu .main-menu ul li i {
        font-size: 26px;
        line-height: 30px;
    }

    .menu .main-menu ul li.active:after {
        width: 3px;
        height: 60px;
    }
}

/*================================================
=========== Dropdown Menu
================================================*/
.dropdown,
.dropleft,
.dropright,
.dropup {
    position: relative;
}

.dropdown-toggle {
    white-space: nowrap;
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.dropdown-toggle:empty::after {
    margin-left: 0;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    /*left: 0;*/
    z-index: 1000;
    display: none;
    float: left;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: var(--body-bg);
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
}

.dropdown-menu-left {
    right: auto;
    left: 0;
}

.dropdown-menu-right {
    right: 0;
    left: auto;
}

@media (min-width: 420px) {
    .dropdown-menu-xs-left {
        right: auto;
        left: 0;
    }

    .dropdown-menu-xs-right {
        right: 0;
        left: auto;
    }
}

@media (min-width: 576px) {
    .dropdown-menu-sm-left {
        right: auto;
        left: 0;
    }

    .dropdown-menu-sm-right {
        right: 0;
        left: auto;
    }
}

@media (min-width: 768px) {
    .dropdown-menu-md-left {
        right: auto;
        left: 0;
    }

    .dropdown-menu-md-right {
        right: 0;
        left: auto;
    }
}

@media (min-width: 992px) {
    .dropdown-menu-lg-left {
        right: auto;
        left: 0;
    }

    .dropdown-menu-lg-right {
        right: 0;
        left: auto;
    }
}

@media (min-width: 1200px) {
    .dropdown-menu-xl-left {
        right: auto;
        left: 0;
    }

    .dropdown-menu-xl-right {
        right: 0;
        left: auto;
    }
}

@media (min-width: 1440px) {
    .dropdown-menu-xxl-left {
        right: auto;
        left: 0;
    }

    .dropdown-menu-xxl-right {
        right: 0;
        left: auto;
    }
}

.dropup .dropdown-menu {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 0.125rem;
}

.dropup .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0;
    border-right: 0.3em solid transparent;
    border-bottom: 0.3em solid;
    border-left: 0.3em solid transparent;
}

.dropup .dropdown-toggle:empty::after {
    margin-left: 0;
}

.dropright .dropdown-menu {
    top: 0;
    right: auto;
    left: 100%;
    margin-top: 0;
    margin-left: 0.125rem;
}

.dropright .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid transparent;
    border-right: 0;
    border-bottom: 0.3em solid transparent;
    border-left: 0.3em solid;
}

.dropright .dropdown-toggle:empty::after {
    margin-left: 0;
}

.dropright .dropdown-toggle::after {
    vertical-align: 0;
}

.dropleft .dropdown-menu {
    top: 0;
    right: 100%;
    left: auto;
    margin-top: 0;
    margin-right: 0.125rem;
}

.dropleft .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
}

.dropleft .dropdown-toggle::after {
    display: none;
}

.dropleft .dropdown-toggle::before {
    display: inline-block;
    margin-right: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid transparent;
    border-right: 0.3em solid;
    border-bottom: 0.3em solid transparent;
}

.dropleft .dropdown-toggle:empty::after {
    margin-left: 0;
}

.dropleft .dropdown-toggle::before {
    vertical-align: 0;
}

.dropdown-menu[x-placement^="bottom"],
.dropdown-menu[x-placement^="left"],
.dropdown-menu[x-placement^="right"],
.dropdown-menu[x-placement^="top"] {
    right: auto;
    bottom: auto;
}

.dropdown-divider {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid #e9ecef;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 16px;
    clear: both;
    font-size: 14px;
    font-weight: 400;
    color: var(--dark-color);
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    cursor: pointer;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.dropdown-item:focus,
.dropdown-item:hover {
    color: #16181b;
    text-decoration: none;
    background-color: #f8f9fa;
}

.dropdown-item.active,
.dropdown-item:active {
    color: #fff;
    text-decoration: none;
    background-color: #007bff;
}

.dropdown-item.disabled,
.dropdown-item:disabled {
    color: #6c757d;
    pointer-events: none;
    background-color: transparent;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--gray-color);
}
.dropdown-item i {
    font-size: 18px;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-header {
    display: block;
    padding: 0.5rem 1.5rem;
    margin-bottom: 0;
    font-size: 0.875rem;
    color: #6c757d;
    white-space: nowrap;
}

.dropdown-item-text {
    display: block;
    padding: 0.25rem 1.5rem;
    color: #212529;
}

.dropdown-menu {
    font-size: 0.8rem;
    border-radius: 8px;
    background: var(--body-bg);
    border-color: rgba(58, 58, 58, 0.15);
}

.dropdown-item:focus,
.dropdown-item:hover {
    background-color: #f8f8f8;
    color: #3a3a3a;
}

.dropdown-item.active,
.dropdown-item:active {
    color: #fff;
    text-decoration: none;
    background-color: #00365a;
}

.dropdown-divider {
    border-color: #d7d7d7;
}


/*================================================
=========== Advanced Page css
================================================*/
.list-group-item.first-item {
    border-bottom: 1px solid #e1e1e2;
    padding-bottom: 8px;
    margin-bottom: 5px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.option-icon {
    font-size: 14px;
    color: #686a6c;
    font-weight: 100;
}

.option-icon .svg-icon {
    width: 18px;
    height: 18px;
}

/*================================================
=========== Icons list Page css
================================================*/
.icon-list {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1em;
}

.icon-item {
    cursor: pointer;
    text-align: center;
    display: grid;
    color: #909090;
}

.icon-item img {
    display: block;
    width: 48px;
    height: 48px;
    margin: auto;
}

.icon-name {
    margin-top: 0.5em;
    font-size: 14px;
    color: #909090;
}



/*================================================
=========== Grid css
================================================*/
.grid {
    display: grid;
}

.grid-gap-10 {
    grid-gap: 10px;
    grid-row-gap: 10px;
}

.grid-gap-15 {
    grid-gap: 15px;
    grid-row-gap: 15px;
}

.grid-gap-30 {
    grid-gap: 30px;
    grid-row-gap: 30px;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

.grid-cols-6 {
    grid-template-columns: repeat(6, 1fr);
}

.grid-cols-7 {
    grid-template-columns: repeat(7, 1fr);
}

.grid-cols-8 {
    grid-template-columns: repeat(8, 1fr);
}

@media (max-width: 1024px) {

    .grid-cols-5,
    .grid-cols-6,
    .grid-cols-7,
    .grid-cols-8 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {

    .grid-cols-4,
    .grid-cols-5,
    .grid-cols-6,
    .grid-cols-7,
    .grid-cols-8 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {

    .grid-cols-3,
    .grid-cols-4,
    .grid-cols-5,
    .grid-cols-6,
    .grid-cols-7,
    .grid-cols-8 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4,
    .grid-cols-5,
    .grid-cols-6,
    .grid-cols-7,
    .grid-cols-8 {
        grid-template-columns: repeat(1, 1fr);
    }
}

/*================================================
=========== Alert css
================================================*/
.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-heading {
    color: inherit;
}

.alert-link {
    font-weight: 700;
}

.alert-dismissible {
    padding-right: 4rem;
}

.alert-dismissible .close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.75rem 1.25rem;
    color: inherit;
}

.alert-primary {
    color: #004085;
    background-color: #cce5ff;
    border-color: #b8daff;
}

.alert-primary hr {
    border-top-color: #9fcdff;
}

.alert-primary .alert-link {
    color: #002752;
}

.alert-secondary {
    color: #383d41;
    background-color: #e2e3e5;
    border-color: #d6d8db;
}

.alert-secondary hr {
    border-top-color: #c8cbcf;
}

.alert-secondary .alert-link {
    color: #202326;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-success hr {
    border-top-color: #b1dfbb;
}

.alert-success .alert-link {
    color: #0b2e13;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-info hr {
    border-top-color: #abdde5;
}

.alert-info .alert-link {
    color: #062c33;
}

.alert-warning {
    color: #856404;
    background-color: var(--body-bg);
    border-color: #ffeeba;
}

.alert-warning hr {
    border-top-color: #ffe8a1;
}

.alert-warning .alert-link {
    color: #533f03;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-danger hr {
    border-top-color: #f1b0b7;
}

.alert-danger .alert-link {
    color: #491217;
}

.alert-light {
    color: #818182;
    background-color: #fefefe;
    border-color: #fdfdfe;
}

.alert-light hr {
    border-top-color: #ececf6;
}

.alert-light .alert-link {
    color: #686868;
}

.alert-dark {
    color: #1b1e21;
    background-color: #d6d8d9;
    border-color: #c6c8ca;
}

.alert-dark hr {
    border-top-color: #b9bbbe;
}

.alert-dark .alert-link {
    color: #040505;
}

/*================================================
=========== Card css
================================================*/




/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white-color);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.stat-card.income::before { background: var(--success-color); }
.stat-card.expense::before { background: var(--danger-color); }
.stat-card.saving::before { background: var(--info-color); }
.stat-card.budget::before { background: var(--warning-color); }

.stat-card.health-weight::before { background: var(--primary-color); }
.stat-card.health-height::before { background: var(--success-color); }
.stat-card.health-bmi::before { background: var(--info-color); }
.stat-card.health-vision::before { background: var(--warning-color); }
.stat-card.health-sugar::before { background: var(--danger-color); }


.stat-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 15px;
}

.stat-header .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    opacity: 1;
}

.stat-header .stat-icon.weight { background: var(--primary-color); }
.stat-header .stat-icon.height { background: var(--success-color); }
.stat-header .stat-icon.bmi { background: var(--info-color); }
.stat-header .stat-icon.vision { background: var(--warning-color); }
.stat-header .stat-icon.sugar { background: var(--danger-color); }

.stat-header .stat-icon i {
    background: white;
}

.stat-card .stat-title {
    font-size: 14px;
    color: var(--gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    margin: 10px 0;
}

.stat-card .stat-change {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.stat-card .stat-change.positive {
    color: var(--success-color);
}

.stat-card .stat-change.negative {
    color: var(--danger-color);
}

.stat-icon {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 40px;
    opacity: 0.2;
}

/* Main Content */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 1200px) {
    .content-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/*================================================
=========== Recent Transactions
================================================*/
.transaction-list {
    list-style: none;
}
.transaction-list .transaction-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    background-color: var(--body-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.transaction-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.transaction-item.income {
    border-left: 4px solid #4cc9f0;
}

.transaction-item.expense {
    border-left: 4px solid #f72585;
}

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

.transaction-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.transaction-info .transaction-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}
.transaction-info .transaction-icon .svg-icon {
    width: 24px;
    height: 24px;
}

.transaction-details {
    min-width: 0;
    flex: 1;
}

.transaction-details h4 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transaction-details p {
    font-size: 13px;
    color: var(--gray-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transaction-amount {
    font-weight: 600;
    margin-left: 10px;
    flex-shrink: 0;
}
.transaction-amount .item-ammount {
    font-size: 20px;
    font-weight: 600;
    /* color: #000; */
    margin: 0 0 5px;
    text-align: right;
}
.transaction-amount .item-method {
    color: #000;
}

.transaction-amount.income {
    color: var(--success-color);
}

.transaction-amount.expense {
    color: var(--danger-color);
}

@media (max-width: 767px) {
    .transaction-info {
        gap: 10px;
    }
    .transaction-info .transaction-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }
    .transaction-info .transaction-icon .svg-icon {
        width: 25px;
        height: 25px;
    }
    .transaction-amount .item-ammount {
        font-size: 16px;
    }
    .transaction-amount .item-method {
        display: none;
    }
}

/*================================================
=========== Budget Progress
================================================*/
.progress-item {
    margin-bottom: 15px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.progress-title {
    font-size: 14px;
    font-weight: 500;
}

.progress-value {
    font-size: 14px;
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.action-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--white-color);
    border-radius: var(--radius);
    padding: 15px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: none;
    outline: none;
}

.action-btn:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.action-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    margin: 0;
    width: 18px;
    height: 18px;
    min-width: initial;
    min-height: initial;
    padding: 0;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* display: flex; */
}

.action-btn i {
    font-size: 24px;
    color: var(--primary-color);
}

.action-btn span {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
}

/* Spending Insights */
.insight-item {
    display: flex;
    gap: 10px;
    padding: 12px;
    background-color: var(--primary-light);
    border-radius: var(--radius);
    margin-bottom: 10px;
    align-items: flex-start;
}

.insight-item i {
    color: var(--warning-color);
    font-size: 18px;
    margin-top: 2px;
}

.insight-item p {
    font-size: 13px;
    flex: 1;
}

.insight-item i.text-success {
    color: var(--success-color);
}



/* Loading state (for AJAX content loading) */
.tab-loading {
    position: relative;
    opacity: 0.7;
}

.tab-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}






/* Advanced Filters Container */
.filter-section {
    background-color: var(--body-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

/* Filter Header */
.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-header h3 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-filters {
    background: none;
    border: none;
    color: var(--white-color);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-filters:hover {
    color: #212529;
}

/* Filter Form */
.filter-form {
    padding: 20px;
    display: none;
    /* Hidden by default */
}

.filter-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* Filter Grid Layout */
.filter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    width: 100%;
}

/* Input Fields */
.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: var(--body-bg);
}

.filter-group input:focus,
.filter-group input:focus {
    border-color: #4361ee;
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

/* Date Range and Amount Range */
.date-range,
.amount-range {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.date-separator,
.range-separator {
    color: #6c757d;
    font-size: 14px;
    flex-shrink: 0;
}

/* Filter Action Buttons */
.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    grid-column: 1 / -1;
    justify-content: flex-end;
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .date-range,
    .amount-range {
        flex-direction: column;
        gap: 8px;
    }

    .date-separator,
    .range-separator {
        display: none;
    }

    .filter-actions {
        flex-direction: column;
    }
}

/* Toggle Animation */
.rotate-icon {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}


/* Budget Progress */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 20px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
  .section-header {
      flex-wrap: wrap;
  }
  .action-buttons {
      gap: 10px;
      flex-wrap: wrap;
  }
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.view-all:hover {
    text-decoration: underline;
}


.progress-bar {
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin: 10px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    background-color: var(--primary-color);
    transition: width 0.5s ease;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.page-link {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #4361ee;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 36px;
    text-align: center;
}

.page-link:hover:not(.active) {
    background-color: #f0f0f0;
}

.page-link.active {
    background-color: #4361ee;
    color: white;
    border-color: #4361ee;
    font-weight: bold;
}

.page-ellipsis {
    padding: 8px 5px;
    color: #6c757d;
}

.pagination-info {
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Budgets View */

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-color);
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-btn:hover:not(.active) {
    color: var(--dark-color);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}


.positive {
    color: var(--success-color);
}

.negative {
    color: var(--danger-color);
}








.year-accordions {
    margin-top: 20px;
}

.year-accordion {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f9fa;
    cursor: pointer;
    user-select: none;
}

.accordion-header h4 {
    font-size: 16px;
    font-weight: 600;
    margin-right: 15px;
}

.badge {
    background-color: #4361ee;
    color: white;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.year-total {
    margin-left: auto;
    margin-right: 20px;
    font-size: 14px;
}

.income-total {
    color: #4cc9f0;
    font-weight: 500;
}

.expense-total {
    color: #f72585;
    font-weight: 500;
}

.accordion-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.accordion-content {
    display: none;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    display: block;
}

@media (max-width: 768px) {
  .accordion-header {
      flex-wrap: wrap;
      gap: 15px;
  }
  .accordion-header .year-total {
      margin: 0;
  }
}

.transaction-table {
    overflow-x: auto;
}

.transaction-table table {
    width: 100%;
    border-collapse: collapse;
}

.transaction-table th {
    text-align: left;
    padding: 12px 15px;
    background-color: #f8f9fa;
    font-weight: 600;
    font-size: 14px;
    color: #212529;
    border-bottom: 2px solid #eee;
}

.transaction-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.type-badge,
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

.description-cell {
    display: flex;
    flex-direction: column;
}

.description-title {
    font-weight: 500;
    margin-bottom: 3px;
}

.paid-to {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.amount-cell {
    font-weight: 600;
}

.income-amount {
    color: #4cc9f0;
}

.expense-amount {
    color: #f72585;
}

.income-row {
    background-color: rgba(76, 201, 240, 0.03);
}

.expense-row {
    background-color: rgba(247, 37, 133, 0.03);
}

.income-row:hover {
    background-color: rgba(76, 201, 240, 0.1);
}

.expense-row:hover {
    background-color: rgba(247, 37, 133, 0.1);
}

.action-buttons {
    display: flex;
    gap: 5px;
}

.action-td {
    /*display: grid;
    grid-template-columns: repeat(3, 1fr);*/
    display: flex;
    gap: 5px;
}
.action-td .action-btn {
    padding: 8px;
    border-radius: 5px;
}
.action-td .action-btn i {
    font-size: 14px;
}

.action-td .action-btn.primary {
    background: #4361ee;
}
.action-td .action-btn.warning {
    background: #ffb400;
}
.action-td .action-btn.danger {
    background: #ff5f5f;
}
.action-td .action-btn i {
    color: #fff;
}
.action-td .action-btn i.svg-icon {
    background: #fff;
}

.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    gap: 5px;
}

.page-link {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #4361ee;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #f0f0f0;
}

.page-link.active {
    background-color: #4361ee;
    color: white;
    border-color: #4361ee;
}

.pagination-info {
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 20px;
}





/* Custom Date Range */
.custom-range-container {
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

.custom-date-input {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.date-separator {
    color: #6c757d;
    font-size: 14px;
}

.btn-apply {
    padding: 8px 15px;
    background-color: #4361ee;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-apply:hover {
    background-color: #3a56d4;
}

/* Loading Indicator */
.loading-indicator {
    display: none;
    margin-left: 10px;
    color: #4361ee;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    animation: spin 1s linear infinite;
    display: inline-block;
}






/* Responsive */
@media (max-width: 768px) {
    .custom-range-container {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {

    .filter-grid {
        grid-template-columns: 1fr;
    }
}

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



.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.summary-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    transition: transform 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
}

.card-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.income-card .card-icon {
    background-color: rgba(76, 201, 240, 0.1);
    color: var(--success-color);
}

.expense-card .card-icon {
    background-color: rgba(247, 37, 133, 0.1);
    color: var(--danger-color);
}

.balance-card .card-icon {
    background-color: rgba(72, 149, 239, 0.1);
    color: var(--info-color);
}

.stats-card .card-icon {
    background-color: rgba(248, 150, 30, 0.1);
    color: var(--warning-color);
}

.card-details {
    display: flex;
    flex-direction: column;
}

.card-label {
    font-size: 14px;
    color: var(--gray-color);
    margin-bottom: 5px;
}

.card-value {
    font-size: 20px;
    font-weight: 600;
}



/* Health Summary */
.health-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
    background-color: var(--white-color);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.health-metric {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: var(--primary-light);
    border-radius: var(--border-radius);
}

.metric-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.metric-label {
    font-size: 16px;
    color: var(--gray-color);
    margin-bottom: 10px;
}

.metric-trend {
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 20px;
}

.metric-trend.positive {
    background-color: rgba(76, 201, 240, 0.1);
    color: var(--success-color);
}

.metric-trend.negative {
    background-color: rgba(247, 37, 133, 0.1);
    color: var(--danger-color);
}

.health-graph {
    padding: 15px;
}

.health-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.health-stats .stat-card {
    background-color: var(--white-color);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.health-stats .stat-value {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.health-stats .stat-label {
    font-size: 14px;
    color: var(--gray-color);
}


/* Responsive Adjustments */
@media (max-width: 1200px) {
    .health-summary {
        grid-template-columns: 1fr;
    }

    .health-metric {
        order: 1;
    }

    .health-graph {
        order: 3;
    }

    .health-stats {
        order: 2;
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .health-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .health-stats {
        grid-template-columns: 1fr;
    }
}




/* Responsive */
@media (max-width: 1200px) {
    .search-bar {
        width: 300px;
    }
}

@media (max-width: 992px) {
    .app-sidebar {
        transform: translateX(-100%);
    }

    .app-sidebar.show {
        transform: translateX(0);
    }

    .app-main {
        margin-left: 0;
    }

    .search-bar {
        display: none;
    }
}

@media (max-width: 768px) {
    .app-header {
        padding: 0 15px;
    }

    .app-main {
        padding: 15px;
    }

    .user-info {
        display: none;
    }

    .header-actions .action-btn:nth-child(2),
    .header-actions .action-btn:nth-child(3) {
        display: none;
    }
}



/*=========================================
========= User page css
=========================================*/
/* Premium User Avatar */
.user-avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.user-avatar-sm:hover {
    transform: scale(1.1);
}

/* Premium Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    gap: 6px;
}

.status-badge:before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-active {
    background-color: var(--success-light);
    color: var(--success-color);
}

.status-active:before {
    background-color: var(--success-color);
}

.status-inactive {
    background-color: var(--danger-light);
    color: var(--danger-color);
}

.status-inactive:before {
    background-color: var(--danger);
}

.status-pending {
    background-color: var(--warning-light);
    color: var(--warning-color);
}

.status-pending:before {
    background-color: var(--warning-color);
}

/* Premium Role Badges */
.role-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

/* Premium Filter Bar */
.filter-bar {
    background: white;
    padding: 15px 25px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-label {
    font-size: 14px;
    color: var(--gray-dark);
    font-weight: 500;
    white-space: nowrap;
}

.filter-select {
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    padding: 9px 15px;
    font-size: 14px;
    min-width: 160px;
    background-color: var(--body-bg);
    transition: var(--transition);
}

.filter-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
    outline: none;
}

.filter-input {
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    padding: 9px 15px;
    font-size: 14px;
    min-width: 220px;
    transition: var(--transition);
}

.filter-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
    outline: none;
}

.filter-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(67, 97, 238, 0.2);
}

.filter-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
}

.reset-btn {
    background-color: transparent;
    color: var(--gray-dark);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.reset-btn:hover {
    background-color: var(--gray-light);
    border-color: var(--gray-color);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-group {
        width: 100%;
    }

    .filter-select,
    .filter-input {
        width: 100%;
    }
}

/* Premium Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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


/*======================================
========= Icon Page css
======================================*/
.icon-list {
    display: grid;
    gap: 20px;
    padding: 15px 0;
}

.icon-list.grid-view {
    grid-template-columns: repeat(4, 1fr);
}

.icon-list.list-view {
    grid-template-columns: 1fr;
}

.icon-list .icon-item {
    border: 1px solid #e7eaec;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    background: var(--body-bg);
}

.icon-list .icon-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #1ab394;
}

.icon-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s;
}

.icon-list .icon-item:hover .icon-checkbox {
    opacity: 1;
}

.icon-list .icon-preview {
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
    cursor: pointer;
}

.icon-list .icon-preview img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

.icon-list .icon-details {
    padding: 15px;
    border-top: 1px solid #e7eaec;
}

.icon-list .icon-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.icon-list .icon-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
}

.icon-list .icon-actions {
    display: flex;
    justify-content: space-between;
}

.icon-list .icon-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 12px;
}

/* List view specific styles */
.icon-list.list-view .icon-item {
    display: flex;
    align-items: center;
}

.icon-list.list-view .icon-preview {
    flex: 0 0 80px;
    padding: 10px;
}

.icon-list.list-view .icon-details {
    flex: 1;
    display: flex;
    align-items: center;
    border-top: none;
    border-left: 1px solid #e7eaec;
}

.icon-list.list-view .icon-name {
    flex: 1;
    margin-bottom: 0;
    padding: 0 15px;
}

.icon-list.list-view .icon-meta {
    flex: 0 0 150px;
    margin-bottom: 0;
    justify-content: space-around;
}

.icon-list.list-view .icon-actions {
    flex: 0 0 180px;
    justify-content: flex-end;
}

.icon-list.list-view .icon-actions .btn {
    margin-left: 5px;
}

/* Empty state */
.empty-state {
    background: #f9f9f9;
    border-radius: 5px;
    padding: 40px;
    text-align: center;
}

.empty-state-icon {
    margin-bottom: 20px;
    color: #ddd;
}

/* Preview modal */
.preview-container {
    background: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #e7eaec;
}

.usage-example {
    position: relative;
    background: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    font-family: monospace;
}

.copy-code-btn {
    position: absolute;
    top: 5px;
    right: 5px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .icon-list.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 768px) {
    .icon-list.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .icon-list.list-view .icon-item {
        flex-direction: column;
    }

    .icon-list.list-view .icon-details {
        flex-direction: column;
        border-left: none;
        border-top: 1px solid #e7eaec;
        width: 100%;
    }

    .icon-list.list-view .icon-meta,
    .icon-list.list-view .icon-actions {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .icon-list.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

.custom-file-upload {
    border: 2px dashed #e7eaec;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.custom-file-upload:hover {
    border-color: #1ab394;
}

.file-label {
    display: block;
    cursor: pointer;
}

.file-button {
    display: inline-block;
    margin-bottom: 5px;
}

.file-text {
    display: block;
    color: #888;
    font-size: 0.9em;
}

.file-preview {
    max-height: 200px;
    overflow-y: auto;
}

.file-preview-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.file-preview-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.file-preview-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.file-preview-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9em;
}

.file-preview-size {
    font-size: 0.8em;
    color: #888;
    margin-left: 10px;
}

/* Hide default file input */
.custom-file-upload input[type="file"] {
    display: none;
}


/*==============================================
=========== Category Page css
==============================================*/
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.category-item {
    transition: all 0.3s ease;
}

.category-box {
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: var(--body-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-box .category-icon {
    margin: auto;
    margin-bottom: 15px;
    width: auto;
    height: auto;
}

.category-box .category-icon i {
    font-size: 32px;
    background: rgba(0, 0, 0, 0.8);
    width: 60px;
    height: 60px;
    line-height: 60px;
    /*border-radius: 50%;*/
    display: inline-block;
}

.category-box .category-name {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
}

.category-box .category-actions {
    margin-top: auto;
    /*padding-top: 15px;*/
    display: flex;
    justify-content: center;
    gap: 5px;
}

.category-box .category-actions .btn {
    padding: 0.25rem 0.5rem;
}

/* Search highlight */
.highlight {
    background-color: yellow;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .category-box .category-icon i {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 24px;
    }

    .category-box .category-name {
        font-size: 14px;
    }
}








/* Category Form Styles */
.form-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.form-icon {
    width: 50px;
    height: 50px;
    background: #e6f2ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-icon i {
    font-size: 24px;
    color: #397bbe;
}

.form-title {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

.form-subtitle {
    margin: 5px 0 0;
    font-size: 0.875rem;
    color: #6c757d;
}

.form-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    position: relative;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.75rem;
    color: #6c757d;
}

/* Icon Selector */
.icon-selector {
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon-selector .icon-preview {
    width: 60px;
    height: 60px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-selector .icon-preview i {
    font-size: 24px;
    color: #397bbe;
}

.icon-controls {
    flex: 1;
    display: flex;
    gap: 10px;
}

/* Color Picker */
.color-picker {
    display: flex;
    gap: 10px;
    align-items: center;
}

.color-picker input[type="color"] {
    width: 40px;
    height: 40px;
    padding: 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.color-picker .hex-value {
    flex: 1;
    /*max-width: 100px;*/
}

/* Status Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: var(--body-bg);
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #1ab394;
}

input:checked+.slider:before {
    transform: translateX(30px);
}

.labels {
    position: absolute;
    top: 6px;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 12px;
    font-weight: bold;
    color: white;
    pointer-events: none;
}

.labels:after {
    content: attr(data-off);
    position: absolute;
    right: 10px;
    transition: all 0.4s;
}

.labels:before {
    content: attr(data-on);
    position: absolute;
    left: 10px;
    opacity: 0;
    transition: all 0.4s;
}

input:checked+.slider+.labels:after {
    opacity: 0;
    transform: translateX(-20px);
}

input:checked+.slider+.labels:before {
    opacity: 1;
    transform: translateX(0px);
}

/* Icon Browser Modal */
.icon-search {
    margin-bottom: 15px;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 5px;
}

.icon-grid .icon-item {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.icon-grid .icon-item:hover {
    background: #f8f9fa;
}

.icon-grid .icon-item.selected {
    border-color: #1ab394;
    background-color: rgba(26, 179, 148, 0.1);
}

.icon-grid .icon-item .icon-preview {
    width: 50px;
    height: 50px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-grid .icon-item .icon-preview i {
    font-size: 24px;
    color: #397bbe;
}

.icon-grid .icon-item .icon-name {
    font-size: 12px;
    text-align: center;
    word-break: break-word;
}

.loading-spinner {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #6c757d;
}

.loading-spinner i {
    font-size: 24px;
    margin-bottom: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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







/*=============================================================
================== Report Page css
=============================================================*/

/* Reports View */
.report-chart {
    height: 400px;
    margin-bottom: 30px;
}

.report-table {
    overflow-x: auto;
}

.report-table table {
    width: 100%;
    border-collapse: collapse;
}

.report-table th, .report-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.report-table tr:hover {
    background-color: #f8f9fa;
}

.positive {
    color: var(--success-color);
}

.negative {
    color: var(--danger-color);
}


/* Report Period Selector */
.report-period-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.report-period-select {
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    background-color: var(--body-bg);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.report-period-select:focus {
    border-color: #4361ee;
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

/* Additional styles for reports */
.report-table {
    margin-top: 20px;
    overflow-x: auto;
}

.report-table table {
    width: 100%;
    border-collapse: collapse;
}

.report-table th, .report-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.report-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.report-table tr:hover {
    background-color: #f8f9fa;
}

.category-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-cell .category-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    max-width: 30px;
    min-height: 30px;
    max-height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    margin: 0;
}

.positive {
    color: #4cc9f0;
    font-weight: 500;
}

.negative {
    color: #f72585;
    font-weight: 500;
}



/* Responsive */
@media (max-width: 768px) {
    .report-period-container {
        flex-direction: column;
        align-items: flex-start;
    }
}