:root {
    /* Colors */
    --primary-color: #4361ee;
    --primary-light: rgba(67, 97, 238, 0.1);
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --dark-color: #2b2d42;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --danger-color: #ef233c;
    --danger-light: rgba(220, 53, 69, 0.1);
    --success-color: #4cc9f0;
    --success-light: #d4edda;
    --success-dark: #155724;
    --warning-color: #ffc107;
    --white: #fff;
    --black: #000;
    --border-color: #eaeaea;
    --shadow-color: rgba(0, 0, 0, 0.1);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;

    /* Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-circle: 50%;
    --border-width: 1px;

    /* Shadows */
    --shadow-sm: 0 2px 10px var(--shadow-color);
    --shadow-md: 0 4px 12px var(--shadow-color);
    --shadow-lg: 0 5px 15px var(--shadow-color);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Typography */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-md: 1rem;
    --text-lg: 1.25rem;
    --text-xl: 1.5rem;

    /* Z-index */
    --z-low: 10;
    --z-medium: 100;
    --z-high: 1000;
}



/* cart tile */



.cart-section {
    min-height: calc(100vh - 180px);
    background-color: var(--white);
}

.cart-item {
    transition: background-color 0.2s ease;
}

.cart-item:hover {
    background-color: rgba(0, 0, 0, 0.015);
}

/* .empty-cart {
    min-height: calc(100vh - 180px);
    background-color: var(--white);
} */

.card {
    border: none;
}

/* Delete button styles */
.remove-from-cart {
    transition: all var(--transition-fast);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-circle);
}

.remove-from-cart:hover {
    background-color: var(--danger-light);
    transform: scale(1.1);
}

.remove-from-cart .material-icons {
    font-size: 1.25rem;
}

/* Mobile card styles */
@media (max-width: 767.98px) {
    .cart-section {
        padding-top: var(--space-md);
        padding-bottom: var(--space-md);
    }

    .mobile-cart-item .card {
        border-radius: var(--radius-lg);
    }

    .mobile-cart-item img {
        max-height: 100px;
    }

    .remove-from-cart {
        width: 32px;
        height: 32px;
    }

    .remove-from-cart .material-icons {
        font-size: 1.1rem;
    }
}

@media (max-width: 575.98px) {
    .mobile-cart-item {
        padding: 0.75rem;
    }

    .mobile-cart-item img {
        max-height: 80px;
    }
}



/* _accountDetail.blade.php */

.password-input-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-color);
    padding: var(--space-sm);
}

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

.input-group-text.verified {
    background-color: var(--success-light);
    color: var(--success-dark);
}




/* orderDetail */


/* Custom Styles */
.order-detail-section {
    background-color: var(--light-color);
}

.card {
    border-radius: 0.75rem;
    overflow: hidden;
}

.card-header {
    padding: 1.25rem 1.5rem !important;
}

.status-history {
    background: var(--white);
    padding: var(--base-padding);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.status-item {
    position: relative;
    padding-left: var(--space-lg);
}

.status-item:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    border-radius: var(--radius-circle);
    background: #dee2e6;
}

.status-item:not(:last-child):after {
    content: "";
    position: absolute;
    left: 3px;
    top: 1.3rem;
    bottom: -1.3rem;
    width: 2px;
    background: #dee2e6;
}

.status-badge .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    font-weight: 500;
}

.product-details-section .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-details-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

/* Mobile Shipping Cards */
.shipping-history-section .card {
    border-left: 3px solid var(--bs-primary);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .card-header {
        padding: 1rem !important;
    }

    .status-history {
        padding: 1rem;
    }

    .status-item {
        padding-left: 1rem;
    }

    .product-details-section .col-md-6 {
        margin-bottom: 1rem;
    }
}

.shipping-timeline {
    position: relative;
    padding-left: 60px;
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item.last::after {
    display: none;
}

.timeline-badge {
    position: absolute;
    left: -60px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    border: 3px solid white;
    box-shadow: 0 0 0 2px currentColor;
}

.timeline-card {
    border-radius: 8px;
    border: 1px solid #eee;
    transition: transform 0.2s;
}

.timeline-card:hover {
    transform: translateY(-3px);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -40px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}


/* order view */

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
}

@media (max-width: 767.98px) {
    .border-bottom {
        border-bottom: 1px solid #eee !important;
    }
}

.empty-state {
    padding: 3rem 0;
}








.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
}

@media (max-width: 767.98px) {
    .border-bottom {
        border-bottom: 1px solid #eee !important;
    }
}

.empty-state {
    padding: 3rem 0;
}

.order-history .table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.order-history .table th {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.order-history .card {
    border-radius: 0.5rem;
}

.font-monospace {
    font-family: 'Roboto Mono', monospace;
}

.badge {
    display: inline-flex;
    align-items: center;
}




/* produt quick view */

/* Custom Modal Styles */
.custom-modal .modal-content {
    border: none;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
}

.product-gallery {
    position: relative;
}

.main-image {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-scroller {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.thumbnail-scroller::-webkit-scrollbar {
    display: none;
}

.thumb-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.thumb-item:hover {
    transform: translateY(-3px);
}

.thumb-item img {
    transition: border-color 0.2s ease;
}

.thumb-item:hover img {
    border-color: var(--bs-primary) !important;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .modal-dialog {
        margin: 0.5rem auto;
        max-height: 80vh;
        height: 80%;
        display: flex;
        align-items: center;
        min-height: 0;
    }

    .modal-content {
        height: 100%;
        overflow: hidden;
    }

    .modal-body {
        padding: 1rem;
        overflow-y: auto;
        flex: 1;
    }

    .main-image {
        min-height: 120px;
        padding: 0.5rem;
    }

    .main-image img {
        max-height: 150px;
    }

    .product-details {
        padding-left: 0 !important;
    }

    .thumb-item {
        width: 60px !important;
    }

    .thumb-item img {
        height: 60px !important;
    }

    h3 {
        font-size: 1.25rem;
    }

    .product-meta .meta-item {
        flex: 0 0 calc(50% - 0.5rem);
    }
}

@media (min-width: 768px) {
    /* .modal-content {
            max-height: 90vh;
        } */

    .main-image {
        min-height: 300px;
    }

    .main-image img {
        max-height: 300px;
    }
}



/* product view */



.product-card {

    transition: all 0.3s ease;

    border: var(--border-width) solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 30px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

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

.card-header {
    position: relative;
    padding: 15px;
    /* padding: 0px!important; */
    background: var(--white);
    text-align: center;
    overflow: hidden;
}

.product-thumbnail {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
}

.discount-badge {
    background: var(--danger-color);
    color: var(--white);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.card-body {
    padding: 15px;
}

.product-category {
    margin-bottom: 8px;



    overflow: hidden;
    max-height: 18px;
}

.product-category a {
    color: var(--gray-color);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;

    overflow: hidden;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.maturity-days {
    background: #f0f0f0;
    color: #555;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.product-title {
    margin-bottom: 12px;
    height: 42px;
    overflow: hidden;
}

.product-title a {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a:hover {
    color: #1890ff;
    text-decoration: none;
}

/* .product-pricing {
        margin-bottom: 15px;
    } */

.current-price {
    color: var(--dark-color);
    font-size: 16px;
    font-weight: 700;
    margin-right: 8px;
}

.original-price {
    color: var(--gray-color);
    font-size: 14px;
    text-decoration: line-through;
}

.card-footer {
    padding: 0px !important;
}


.add-to-cart-btn:hover {
    background: #40a9ff;
}

.icon-cart {
    font-size: 16px;
}



.product-card-skeleton {
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.skeleton-header {
    position: relative;
    /* padding: 15px; */
    background: var(--white);
    text-align: center;
    overflow: hidden;
}

.skeleton-thumbnail {
    height: 180px;
    background: #f0f0f0;
    border-radius: 4px;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-body {
    padding: 15px;
}

.skeleton-category-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.skeleton-category {
    width: 40%;
    height: 12px;
    background: #f0f0f0;
    border-radius: 4px;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-maturity {
    width: 20%;
    height: 12px;
    background: #f0f0f0;
    border-radius: 4px;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-title {
    width: 90%;
    height: 16px;
    background: #f0f0f0;
    margin-bottom: 8px;
    border-radius: 4px;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-title-short {
    width: 70%;
    height: 16px;
    background: #f0f0f0;
    margin-bottom: 15px;
    border-radius: 4px;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-pricing {
    width: 50%;
    height: 20px;
    background: #f0f0f0;
    border-radius: 4px;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-footer {
    padding: 0 15px 15px;
}

.skeleton-button {
    width: 100%;
    height: 40px;
    background: #f0f0f0;
    border-radius: 4px;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}









/* Custom animations */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

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

.animate-spin {
    animation: spin 1s linear infinite;
}

.rotate-180 {
    transform: rotate(180deg);
}

/* Transition effects */
#sort-dropdown {
    transition: all 0.2s ease-out;
}

/* Hover effects */
#product-tile a:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}





/* profile view  */



.password-input-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    padding: 0.5rem;
}

.password-toggle:hover {
    color: #4e54c8;
}

.input-group-text.verified {
    background-color: #d4edda;
    color: #155724;
}




/* deposit */



.payment-methods .btn-group .btn {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

.input-group-text {
    background-color: #f8f9fa;
}

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

.btn-check:checked+.btn {
    color: #fff;
}

.btn-check:checked+.btn-outline-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.is-invalid {
    border-color: #dc3545;
}

.is-invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.is-invalid~.invalid-feedback {
    display: block;
}

@media (max-width: 767.98px) {
    .payment-methods .btn-group .btn {
        font-size: 0.8rem;
        padding: 0.4rem;
    }
}






/* wallet view  */




.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
}

.transaction-history .table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.transaction-history .table th {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.transaction-history .card {
    border-radius: 0.5rem;
}

.font-monospace {
    font-family: 'Roboto Mono', monospace;
}





/* withdrawal */




.payment-methods .btn-group .btn {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

.input-group-text {
    background-color: #f8f9fa;
}

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

.btn-check:checked+.btn {
    color: #fff;
}

.btn-check:checked+.btn-outline-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-check:checked+.btn-outline-success {
    background-color: #198754;
    border-color: #198754;
}

@media (max-width: 767.98px) {
    .payment-methods .btn-group .btn {
        font-size: 0.8rem;
        padding: 0.4rem;
    }
}





/* app  */

.btn-content,
.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.add-to-cart {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.add-to-cart .btn-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: inherit;
    color: inherit;
}

.add-to-cart.success {
    background-color: #28a745 !important;
    animation: pulseSuccess 1s;
}

.add-to-cart.error {
    background-color: #dc3545 !important;
    animation: pulseError 1s;
}

@keyframes pulseSuccess {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes pulseError {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-5px);
    }

    40% {
        transform: translateX(5px);
    }

    60% {
        transform: translateX(-5px);
    }

    80% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(0);
    }
}

.fa-spinner {
    margin-right: 8px;
}

.custom-tooltip {
    position: absolute;
    background-color: #000;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap;
    z-index: 9999;
    display: none;
}




/* footer */



.site-footer {
    background-color: var(--primary-light);
    padding: 2rem 0;
    font-size: 0.9rem;
    color: #6c757d;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

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

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #343a40;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-column a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: #000;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}




/* Avatar Styles */
.avatar-fallback,
.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-circle);
}

.avatar-fallback {
    background-color: var(--gray-color);
    color: var(--white);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
}

.user-avatar {
    object-fit: cover;
}

/* Header Styles */
.header {
    position: sticky;
    z-index: var(--z-high);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* .header-content i {
   font-size: 30px;
} */

.header-logo .logo-img {
    height: 40px;
    width: auto;
}

/* Desktop Navigation */
.desktop-nav .nav-list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.desktop-nav .nav-item {
    margin: 0 var(--space-sm);
}

.desktop-nav .nav-link {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    position: relative;
}

.desktop-nav .nav-link:hover,
.desktop-nav .nav-link.active {
    color: var(--primary-color);
}

.desktop-nav .nav-link.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary-color);
    border-radius: var(--radius-sm);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.action-item {
    position: relative;
}

.action-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-circle);
    color: var(--dark-color);
    transition: var(--transition-normal);
    position: relative;
}

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

.action-link .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius-circle);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: bold;
}

/* Dropdown Styles */
.dropdown-content {
    position: absolute;
    right: 1%;
    /* top: calc(100% + var(--space-sm)); */
    width: 320px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-normal);
    z-index: var(--z-high);
    padding: var(--space-md);
}

.dropdown-content.show {
    opacity: 1;
    visibility: visible;
    /* transform: translateY(0); */
}

.action-item:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Cart Dropdown */
.cart-content {
    display: flex;
    flex-direction: column;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: var(--border-width) solid var(--border-color);
}

.cart-header h5 {
    margin: 0;
    font-size: var(--text-md);
    font-weight: 600;
}

.cart-items-count {
    font-size: var(--text-xs);
    color: var(--gray-color);
}

.cart-body {
    padding: var(--space-md) 0;
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) 0;
}

.empty-cart i {
    font-size: var(--text-xl);
    color: var(--border-color);
    margin-bottom: var(--space-sm);
}

.empty-cart p {
    margin: 0;
    color: var(--gray-color);
}

.cart-footer {
    padding-top: var(--space-md);
    border-top: var(--border-width) solid var(--border-color);
}

.btn-view-cart {
    width: 100%;
    padding: var(--space-sm);
    font-size: var(--text-sm);
}

/* Notification Dropdown */
.notification-content {
    display: flex;
    flex-direction: column;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-bottom: var(--space-md); */
    padding-bottom: var(--space-sm);
    border-bottom: var(--border-width) solid var(--border-color);
}

.notification-header h5 {
    margin: 0;
    font-size: var(--text-md);
    font-weight: 600;
}

.mark-all-read {
    font-size: var(--text-xs);
    color: var(--primary-color);
    cursor: pointer;
}

.notification-body {
    /* max-height: 300px; */
    overflow-y: auto;
}

#notification-nav .notification-body {
    max-height: 300px;
    /* overflow-y: auto; */
}

.notification-item {
    display: flex;
    padding: var(--space-sm) 0;
    border-bottom: var(--border-width) solid var(--light-color);
}

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

.notification-icon {
    margin-right: var(--space-sm);
    color: var(--primary-color);
    font-size: var(--text-sm);
}

.notification-details {
    flex: 1;
}

.notification-message {
    margin: 0;
    font-size: var(--text-sm);
    line-height: 1.4;
}

.notification-time {
    font-size: var(--text-xs);
    color: var(--gray-color);
}

.no-notifications {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) 0;
}

.no-notifications i {
    font-size: var(--text-xl);
    color: var(--border-color);
    margin-bottom: var(--space-sm);
}

.no-notifications p {
    margin: 0;
    color: var(--gray-color);
}

.notification-footer {
    padding-top: var(--space-md);
    border-top: var(--border-width) solid var(--border-color);
    text-align: center;
}

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

/* User Dropdown */
.user-content {
    display: flex;
    flex-direction: column;
    width: 280px;
}

.user-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: var(--border-width) solid var(--border-color);
}

.profile-img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-circle);
    object-fit: cover;
    margin-right: var(--space-md);
}

.user-info h6 {
    margin: 0 0 var(--space-xs);
    font-size: var(--text-md);
}

.user-info span {
    font-size: var(--text-xs);
    color: var(--gray-color);
}

.user-body {
    margin-bottom: var(--space-md);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: var(--space-xs) 0;
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition-normal);
}

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

.dropdown-item i {
    margin-right: var(--space-sm);
    width: 20px;
    text-align: center;
}

.user-footer {
    padding-top: var(--space-md);
    border-top: var(--border-width) solid var(--border-color);
}

.logout-item {
    color: var(--danger-color);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: var(--space-sm);
}

.login-btn,
.register-btn {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius-md);
}

.login-btn i,
.register-btn i {
    margin-right: var(--space-xs);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--dark-color);
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 70px;
    right: 0;
    width: 60%;
    height: calc(100vh - 70px);
    background: var(--white);
    transform: translateX(100%);
    transition: var(--transition-normal);
    z-index: var(--z-medium);
    overflow-y: auto;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-content {
    padding: var(--space-md);
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    margin-bottom: var(--space-sm);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    color: var(--dark-color);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

.mobile-nav-link i {
    margin-right: var(--space-md);
    width: 20px;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-content {
        height: 60px;
    }

    .header-logo .logo-img {
        height: 35px;
    }

    .action-link {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .auth-buttons {
        display: none;
    }

    .dropdown-content {
        width: 280px;
    }

    .user-content {
        width: 260px;
    }
}



/* side bar  */

/* Main Layout */
.main-wrap {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    margin-left: 280px;
    /* Match sidebar width */
    transition: margin var(--transition-normal);
}

.content-main {
    flex: 1;
    padding: var(--space-md);
    background-color: var(--light-color);
    min-height: 100vh;
}

/* Sidebar Styles */
.navbar-aside {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: var(--white);
    z-index: var(--z-high);
    box-shadow: var(--shadow-sm);
    overflow-y: auto;
    transition: transform var(--transition-normal);
    transform: translateX(0);
}

.navbar-aside #offcanvas_aside {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.aside-top {
    padding: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: var(--border-width) solid var(--border-color);
}

.brand-wrap {
    display: flex;
    align-items: center;
}

.brand-wrap .logo {
    height: 40px;
}

.btn-aside-minimize {
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    transition: var(--transition-fast);
}

/* Menu Styles */
.menu-aside {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    position: relative;
    animation: fadeIn 0.3s ease forwards;
    opacity: 0;
}

/* Parent open style (only parent link) */
.menu-item.open>.menu-link {
    background: rgba(0, 0, 0, 0.04);
}

/* Submenu layout / indent */
.menu-sub {
    padding-left: 0;
    list-style: none;
    margin: 0;
}

.menu-sub .menu-link {
    padding-left: 2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Active child — only applies when the child li has .active */
.menu-sub .menu-item.active>.menu-link {
    background: #f0f0f0;
    font-weight: 600;
}

/* Ensure parent open doesn't make every child look active */
.menu-item.open .menu-sub .menu-item>.menu-link {
    /* keep defaults — don't copy parent active look here */
}

/* caret rotation */
.menu-item.open>.menu-link .caret {
    transform: rotate(180deg);
    transition: transform .18s;
}


.menu-link {
    display: flex;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition-normal);
}

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

.menu-link .icon {
    margin-right: var(--space-sm);
    font-size: var(--text-lg);
}

.menu-link .text {
    font-size: var(--text-sm);
    font-weight: 500;
}

/* Active Menu Item */
.menu-item.active .menu-link {
    color: var(--primary-color);
    background-color: var(--primary-light);
}

/* Submenu Styles */
.submenu {
    display: none;
    padding-left: var(--space-md);
    background-color: var(--light-color);
}

.submenu a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--gray-color);
    text-decoration: none;
    font-size: var(--text-xs);
    transition: var(--transition-normal);
}

.submenu a:hover {
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.02);
}

.menu-item.has-submenu .menu-link::after {
    content: "›";
    position: absolute;
    right: var(--space-md);
    transform: rotate(90deg);
    transition: transform var(--transition-normal);
}

.menu-item.has-submenu.active .menu-link::after {
    transform: rotate(0deg);
}

.menu-item.has-submenu.active .submenu {
    display: block;
}

/* Divider */
hr {
    margin: var(--space-md) var(--space-md);
    border: none;
    border-top: var(--border-width) solid var(--border-color);
}

/* Navbar Styles */
.main-header.navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: var(--z-medium);
    padding: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.col-nav {
    display: flex;
    align-items: center;
    width: 100%;
}

.btn-mobile {
    background: none;
    border: none;
    color: var(--gray-color);
    font-size: var(--text-xl);
    cursor: pointer;
    margin-right: auto;
    transition: var(--transition-fast);
}

.nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    position: relative;
    margin-left: var(--space-md);
}

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

/* Dropdown Styles */
.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 220px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    padding: var(--space-sm) 0;
    display: none;
    z-index: var(--z-high);
}

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

.dropdown-item {
    padding: var(--space-xs) var(--space-md);
    color: var(--dark-color);
    text-decoration: none;
    display: block;
    font-size: var(--text-sm);
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.dropdown-divider {
    height: var(--border-width);
    background: var(--border-color);
    margin: var(--space-xs) 0;
}

.img-xs {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-circle);
    object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .main-wrap {
        margin-left: 0;
    }

    .aside-minimized .main-wrap {
        margin-left: 0 !important;
    }

    .navbar-aside {
        transform: translateX(-100%);
    }

    .navbar-aside.show {
        transform: translateX(0);
    }

    .screen-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: var(--z-medium);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-normal);
    }

    .screen-overlay.show {
        opacity: 1;
        visibility: visible;
    }
}

/* Animation for menu items */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.menu-item:nth-child(1) {
    animation-delay: 0.1s;
}

.menu-item:nth-child(2) {
    animation-delay: 0.2s;
}

.menu-item:nth-child(3) {
    animation-delay: 0.3s;
}

/* Minimized Sidebar Styles */
.aside-minimized .navbar-aside {
    width: 80px;
    overflow: hidden;
}

.aside-minimized .brand-wrap .logo {
    display: none;
}

.aside-minimized .menu-link .text {
    display: none;
}

.aside-minimized .menu-link .icon {
    margin-right: 0;
    font-size: 1.5rem;
}

.aside-minimized .menu-link {
    justify-content: center;
    padding: var(--space-sm) 0;
}

.aside-minimized .submenu {
    display: none !important;
}

.aside-minimized .menu-item.has-submenu .menu-link::after {
    display: none;
}

.aside-minimized .main-wrap {
    margin-left: 80px;
}

.aside-minimized .aside-top {
    justify-content: center;
    padding: var(--space-md) 0;
}

/* Button Hover Effects */
.btn-aside-minimize:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}



.company-name {
    font-family: 'VT323', monospace;
}


.document-upload {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s;
}

.document-upload:hover {
    border-color: #4e54c8;
    background: #f0f2ff;
}

.document-upload i {
    font-size: 2rem;
    color: #6c757d;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 40;
    /* Below mobile menu if it’s z-50 */
    transition: opacity 0.3s ease;
}

.mobile-overlay.hidden {
    display: none;
}




.header-logo .logo-img {
    transition: all 0.3s ease;
    opacity: 0.9;
}

.header-logo:hover .logo-img {
    opacity: 1;
    transform: scale(1.08);
}

.a-danger {
    color: #dc3545;
}

.status-timeline {
    position: relative;
    padding-left: 15px;
}

.status-indicator {
    position: relative;
    top: 3px;
}

.timeline-connector {
    height: 20px;
    border-left: 1px dashed #dee2e6;
    margin-left: 4px;
    margin-top: 5px;
}