@import url("root.css");

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--page-font-family);
    background: var(--page-bg);
    margin: 0;
    padding: 0;
    color: var(--page-text-primary);
}

/* Container */
.page-container {
    min-height: 100vh;
    background: var(--page-content-bg);
}

/* Main Content Area */
.page-main {
    padding: var(--page-padding);
}

.content-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

/* Page Header */
.page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--page-gap);
    margin-bottom: var(--page-gap);
}

.page-header {
    margin-bottom: 0;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 8px;
}

.breadcrumb-item a {
    color: var(--page-text-muted);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--page-text-primary);
}

.page-title {
    font-size: var(--page-font-size-xl);
    font-weight: var(--page-font-weight-bold);
    margin: 0;
    color: var(--page-text-primary);
}

/* Action Bar */
.action-bar {
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: var(--page-gap);
}

.search-section {
    flex: 1;
    max-width: 811px;
    min-width: 300px;
}

    .search-section .input-group {
        border-radius: var(--page-border-radius-sm);
        overflow: hidden;
    }

    .search-section .form-control {
        border: 1px solid var(--page-border);
        padding: 8px 12px;
        font-size: var(--page-font-size-sm);
    }

        .search-section .form-control:focus {
            box-shadow: none;
            border-color: var(--page-primary);
        }

    .search-section .btn {
        border: 1px solid var(--page-primary);
        background: var(--page-primary);
        color: var(--page-bg);
        padding: 8px 12px;
    }

.add-customer-section .btn {
    background: var(--page-primary);
    border: 1px solid var(--page-primary);
    color: var(--page-bg);
    padding: 8px 16px;
    font-size: var(--page-font-size-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* Table Container */
.table-container {
    background: var(--page-bg);
    border: 1px solid var(--page-border);
    border-radius: var(--page-border-radius);
    padding: 8px 24px 24px;
    margin-bottom: var(--page-gap);
}

.table {
    margin-bottom: 0;
}

    .table thead th {
        background: transparent;
        border-bottom: 1px solid var(--page-border);
        color: var(--page-text-secondary);
        font-size: var(--page-font-size-base);
        font-weight: var(--page-font-weight-bold);
        padding: 12px 8px;
        border-top: none;
        border-left: none;
        border-right: none;
    }

    .table tbody tr {
        border-bottom: 1px solid var(--page-border);
    }

        .table tbody tr:nth-child(odd) {
            background: rgba(0, 0, 0, 0.02);
        }

    .table tbody td {
        padding: 8px 8px;
        vertical-align: middle;
        font-size: var(--page-font-size-base);
        color: var(--page-text-primary);
        border: none;
        background-color: inherit;
    }

        .table tbody td:first-child {
            font-weight: var(--page-font-weight-normal);
            color: var(--page-primary);
        }

    .vc-td {
        padding: .375rem .75rem;
    }

/* Form Switches */
.form-check-input {
    width: 46px;
    height: 20.44px;
    border-radius: 52.57px;
    border: 1.64px solid;
    background-image: none;
    position: relative;
    cursor: pointer;
}

    .form-check-input:checked {
        background-color: var(--page-success);
        border-color: var(--page-success);
    }

   /* .form-check-input:not(:checked) {
        background-color: var(--page-warning);
        border-color: var(--page-warning);
    }*/

    .form-check-input::before {
        content: '';
        top: 3.29px;
        left: 3.29px;
        width: 13.14px;
        height: 13.14px;
        background: var(--page-bg);
        border-radius: 50%;
        transition: transform 0.3s ease;
    }

    .form-check-input:checked::before {
        transform: translateX(25.57px);
    }

/* Action Buttons */
.btn-outline-danger {
    border-color: var(--page-danger);
    color: var(--page-danger);
}

    .btn-outline-danger:hover {
        background-color: var(--page-danger);
        border-color: var(--page-danger);
        color: var(--page-bg);
    }

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: var(--page-gap);
}

.pagination {
    gap: -1px;
}

.page-link {
    border: 1px solid #E5E5E5;
    color: var(--page-primary);
    padding: 6px 12px;
    font-size: var(--page-font-size-base);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
}

    .page-link:hover {
        background-color: var(--page-primary);
        border-color: var(--page-primary);
        color: var(--page-bg);
    }

.page-item.active .page-link {
    background-color: var(--page-primary);
    border-color: var(--page-primary);
    color: var(--page-bg);
}

.page-item:first-child .page-link,
.page-item:last-child .page-link {
    border-radius: 6px;
}

.page-item:first-child .page-link {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.page-item:last-child .page-link {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .search-section {
        max-width: 600px;
    }
}

@media (max-width: 992px) {
    .page-toolbar {
        align-items: stretch;
        gap: 12px;
    }

    .action-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .search-section {
        max-width: 100%;
        min-width: auto;
    }

    .add-customer-section {
        align-self: flex-end;
    }
}

@media (max-width: 768px) {
    :root {
        --page-padding: 16px;
        --page-gap: 12px;
    }

    .table-container {
        padding: 8px 16px 16px;
    }

    .table-responsive {
        font-size: var(--page-font-size-sm);
    }

    .page-title {
        font-size: var(--page-font-size-lg);
    }

    .table thead th,
    .table tbody td {
        padding: 8px 4px;
    }
}

@media (max-width: 576px) {
    .action-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-section {
        max-width: 100%;
    }

    .add-customer-section {
        align-self: stretch;
    }

        .add-customer-section .btn {
            justify-content: center;
        }

    .table thead th,
    .table tbody td {
        padding: 4px 2px;
        font-size: var(--page-font-size-sm);
    }

    .pagination {
        flex-wrap: wrap;
        gap: 4px;
    }

    .page-link {
        min-width: 32px;
        height: 32px;
        font-size: var(--page-font-size-sm);
    }
}

/* Utility Classes */
.text-primary {
    color: var(--page-primary) !important;
}

.text-secondary {
    color: var(--page-text-secondary) !important;
}

.text-muted {
    color: var(--page-text-muted) !important;
}

.bg-primary {
    background-color: var(--page-primary) !important;
}

.bg-success {
    background-color: var(--page-success) !important;
}

.bg-danger {
    background-color: var(--page-danger) !important;
}

.border-primary {
    border-color: var(--page-primary) !important;
}

.border-secondary {
    border-color: var(--page-border) !important;
}

/* Customer Detail Page Styles */
.tabs-container {
    background: var(--page-bg);
    border: 1px solid var(--page-border);
    border-radius: var(--page-border-radius) var(--page-border-radius) 0 0;
    margin-bottom: 0;
}

.nav-tabs {
    border-bottom: none;
    padding: 0 24px;
}

    .nav-tabs .nav-link {
        border: none;
        border-radius: 0;
        color: var(--page-text-secondary);
        font-size: var(--page-font-size-base);
        font-weight: var(--page-font-weight-medium);
        padding: 16px 0;
        margin-right: 32px;
        position: relative;
        background: transparent;
    }

        .nav-tabs .nav-link:hover {
            color: var(--page-primary);
            background: transparent;
            border: none;
        }

        .nav-tabs .nav-link.active {
            color: var(--page-primary);
            background: transparent;
            border: none;
            border-bottom: 4px solid var(--page-primary);
        }

.tab-content {
    background: var(--page-bg);
    border: 1px solid var(--page-border);
    border-top: none;
    border-radius: 0 0 var(--page-border-radius) var(--page-border-radius);
    padding: 24px;
}

.customer-detail-container {
    max-width: 800px;
}

.info-section {
    margin-bottom: 32px;
}

.info-row-group {
    display: flex;
    flex-wrap: wrap;
    gap: 56px;
    margin-bottom: 16px;
}

.info-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
    flex: 1;
}

.info-label {
    font-size: var(--page-font-size-base);
    font-weight: var(--page-font-weight-medium);
    color: #A1A4B2;
    line-height: 1.2;
}

.info-value {
    font-size: var(--page-font-size-base);
    font-weight: var(--page-font-weight-medium);
    color: var(--page-text-primary);
    line-height: 1.2;
}

.contact-section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    color: #495057;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.settings-section {
    margin-bottom: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.setting-label {
    font-size: var(--page-font-size-base);
    font-weight: var(--page-font-weight-medium);
    color: var(--page-text-primary);
}

.action-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--page-border);
}

    .action-section .btn {
        /*background: var(--page-primary);
        border: 1px solid var(--page-primary);*/
        color: var(--page-bg);
        padding: 8px 16px;
        font-size: var(--page-font-size-sm);
        display: flex;
        align-items: center;
        gap: 8px;
    }

.tab-content-placeholder {
    text-align: center;
    padding: 48px 24px;
    color: var(--page-text-muted);
}

    .tab-content-placeholder h4 {
        margin-bottom: 16px;
        color: var(--page-text-primary);
    }

/* Responsive adjustments for customer detail */
@media (max-width: 768px) {
    .info-row-group {
        flex-direction: column;
        gap: 16px;
    }

    .info-row {
        min-width: auto;
    }

    .settings-section {
        grid-template-columns: 1fr;
    }

    .setting-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .nav-tabs {
        padding: 0 16px;
    }

        .nav-tabs .nav-link {
            margin-right: 16px;
            font-size: var(--page-font-size-sm);
            padding: 12px 0;
        }

    .tab-content {
        padding: 16px;
    }
}

@media (max-width: 576px) {
    .nav-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }

        .nav-tabs .nav-link {
            margin-right: 0;
            flex: 1;
            text-align: center;
        }
}

/* Customer Location List Page Styles */
.location-detail-container {
    max-width: 100%;
}

.table-title {
    font-size: 20px;
    font-weight: 800;
    color: #45464D;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* Form Check Styling for Location List */
.form-check {
    margin-bottom: 0;
}

.form-check-input {
    width: 16px;
    height: 16px;
    margin-top: 0;
    margin-right: 8px;
    border: 1px solid #DEE2E6;
    border-radius: 2px;
    background-color: #fff;
    cursor: pointer;
}

    .form-check-input:checked {
        background-color: var(--page-primary);
        border-color: var(--page-primary);
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
    }

    .form-check-input[type="radio"] {
        border-radius: 50%;
    }

        .form-check-input[type="radio"]:checked {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
        }

.form-check-label {
    font-size: var(--page-font-size-base);
    font-weight: var(--page-font-weight-normal);
    color: var(--page-text-primary);
    cursor: pointer;
    margin-bottom: 0;
    line-height: 1.2;
}

/* Table styling for location list */
.table-container {
    background: var(--page-bg);
    border: 1px solid var(--page-border);
    border-radius: var(--page-border-radius);
    padding: 8px;
    margin-bottom: 24px;
}

    .table-container:last-child {
        margin-bottom: 0;
    }

.table th {
    background: transparent;
    border-bottom: 1px solid var(--page-border);
    color: var(--page-text-secondary);
    font-size: var(--page-font-size-base);
    font-weight: var(--page-font-weight-bold);
    padding: 12px 8px;
    border-top: none;
    border-left: none;
    border-right: none;
}

.table td {
    padding: 12px 8px;
    vertical-align: middle;
    font-size: var(--page-font-size-base);
    color: var(--page-text-primary);
    border: none;
}

.table tbody tr {
    border-bottom: 1px solid var(--page-border);
}

    .table tbody tr:nth-child(odd) {
        background: rgba(0, 0, 0, 0.02);
    }

    .table tbody tr:last-child {
        border-bottom: none;
    }

/* Responsive adjustments for location list */
@media (max-width: 768px) {
    .table-container {
        padding: 16px;
    }

    .table-title {
        font-size: 18px;
    }

    .table th,
    .table td {
        padding: 8px 4px;
        font-size: var(--page-font-size-sm);
    }

    .form-check-label {
        font-size: var(--page-font-size-sm);
    }
}

/* Brand Preference Styles - Settings Page Specific */

.brand-preference-container {
    max-width: 500px;
}

.brand-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.brand-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #E3F2FD;
    border: 1px solid #BBDEFB;
    border-radius: var(--page-border-radius-sm);
    cursor: move;
    user-select: none;
    transition: all 0.2s ease;
}

    .brand-item:hover {
        background: #BBDEFB;
        border-color: #90CAF9;
    }

    .brand-item span {
        font-size: var(--page-font-size-base);
        color: var(--page-text-primary);
        font-weight: var(--page-font-weight-medium);
    }

/* Responsive adjustments for brand preference */
@media (max-width: 768px) {
    .brand-preference-container {
        max-width: 100%;
    }
}

/* Custom Toggle Switches - Figma Green Style */
.custom-switch:checked {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

.custom-switch:focus {
    border-color: #28a745;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

.custom-switch {
    width: 3em;
    height: 1.5em;
}

/* Add Customer Page - Section Borders */
.info-section {
    border: 1px solid #F0F2F7;
    border-radius: var(--page-border-radius);
    padding: 12px 24px 12px 24px;
    background: var(--page-bg);
}

/* Table alternating rows for locations */
.table tbody tr:nth-child(odd) {
    background-color: #F0F2F7;
}

.table tbody tr:nth-child(even) {
    /*background-color: rgba(240, 242, 247, 0.3);*/
}

/* Locations table styling for add-customer page */
.locations-table .table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: #FFFFFF;
}

.locations-table .table-striped > tbody > tr:nth-of-type(even) > td {
    background-color: rgba(240, 242, 247, 0.3);
}

/* Alert Modal Styling */
.alert-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

.alert-modal {
    position: relative;
    max-width: 400px;
    width: 90%;
    z-index: 1060;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: var(--page-border-radius);
}

.alert-header {
    border-bottom: none;
}

    .alert-header h4 {
        color: var(--page-text-primary);
        font-weight: 600;
        font-size: 18px;
    }

.alert-message {
    color: var(--page-text-secondary);
    line-height: 1.5;
}

    .alert-message p {
        margin-bottom: 0.5rem;
        font-size: 14px;
    }

/* Responsive adjustments for alert modal */
@media (max-width: 576px) {
    .alert-modal {
        max-width: 320px;
        margin: 20px;
    }

    .alert-header h4 {
        font-size: 16px;
    }

    .alert-message p {
        font-size: 13px;
    }
}

/* Generic Modal Content Styling */
.modal-content {
    margin-top: 1.5rem;
}

.modal-section.border-end {
    border-right: 1px solid #F0F2F7 !important;
}

.modal-section h5 {
    color: var(--page-text-primary);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 1rem;
}

.location-item,
.shipping-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #F8F9FA;
}

    .location-item:last-child,
    .shipping-item:last-child {
        border-bottom: none;
    }

    .location-item span,
    .shipping-item span {
        color: var(--page-text-primary);
        font-size: 14px;
    }

/* Responsive adjustments for modal sections */
@media (max-width: 576px) {
    .modal-section.border-end {
        border-right: none !important;
        border-bottom: 1px solid #F0F2F7;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
        padding-right: 0 !important;
    }

    .modal-section:not(.border-end) {
        padding-left: 0 !important;
    }
}


/* Success Notification Overlay */
.success-notification {
    position: fixed;
    top: 20px;
    right: 33px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1070;
    min-width: 320px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    background: transparent;
}

    .success-notification.show {
        opacity: 1;
        transform: translateX(0);
    }

    .success-notification.hide {
        opacity: 0;
        transform: translateX(100%);
    }

    .success-notification .notification-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .success-notification .notification-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 12px;
        background: #E8F5E8;
        border-bottom: none;
        position: relative;
    }

    .success-notification .notification-title {
        font-weight: var(--page-font-weight-medium);
        font-size: 14px;
        color: #666;
        line-height: 1.2;
        margin: 0;
    }

    .success-notification .notification-time {
        font-size: 12px;
        color: #999;
        line-height: 1.2;
        margin-right: 18px;
    }

    .success-notification .notification-message {
        font-size: 14px;
        font-weight: var(--page-font-weight-medium);
        color: white;
        background: var(--page-success);
        padding: 8px 12px;
        line-height: 1.3;
        margin: 0;
        border: none;
        border-radius: 0;
    }

    .success-notification .close-btn {
        background: none;
        border: none;
        color: #666;
        font-size: 16px;
        cursor: pointer;
        padding: 0;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0.6;
        transition: opacity 0.2s ease;
        position: absolute;
        top: 8px;
        right: 8px;
        z-index: 1;
    }

        .success-notification .close-btn:hover {
            opacity: 1;
        }

/* Responsive adjustments for notification */
@media (max-width: 576px) {
    .success-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}
/* Settings Page Specific Styles */
.settings-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

    .settings-link:hover {
        text-decoration: none;
        color: inherit;
    }

.settings-item-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 16px !important;
}

    .settings-item-section:hover {
        background-color: rgba(0, 85, 255, 0.02);
    }

    .settings-item-section .settings-content {
        flex: 1;
        padding-right: 16px;
    }

    .settings-item-section .settings-title {
        font-size: var(--page-font-size-lg);
        font-weight: var(--page-font-weight-semibold);
        color: var(--page-text-primary);
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .settings-item-section .settings-description {
        font-size: var(--page-font-size-base);
        color: var(--page-text-secondary);
        line-height: 1.5;
        margin: 0;
    }

    .settings-item-section .settings-arrow {
        color: var(--page-text-muted);
        font-size: 16px;
        flex-shrink: 0;
        transition: color 0.2s ease, transform 0.2s ease;
    }

    .settings-item-section:hover .settings-arrow {
        color: var(--page-primary);
        transform: translateX(2px);
    }

/* Remove old settings styles that conflict */
.settings-list .settings-item {
    display: none;
}

/* Responsive adjustments for settings page */
@media (max-width: 768px) {
    .settings-item-section {
        padding: 20px;
    }

        .settings-item-section .settings-title {
            font-size: var(--page-font-size-base);
        }

        .settings-item-section .settings-description {
            font-size: var(--page-font-size-sm);
        }

        .settings-item-section .settings-content {
            padding-right: 12px;
        }
}

@media (max-width: 576px) {
    .settings-item-section {
        padding: 16px;
    }

        .settings-item-section .settings-content {
            padding-right: 8px;
        }
}
/* Active Status Toggle Styles */
.active-status-toggle-container {
    display: inline-block;
}

.active-status-toggle {
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #ddd;
    background: #f8f9fa;
    max-width: 84px;
}

.active-status-toggle-option {
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
    color: #6c757d;
    background: #f8f9fa;
    border: none;
    min-width: 40px;
    text-align: center;
}

    .active-status-toggle-option.active[data-value="yes"] {
        background: #28a745;
        color: white;
    }

    .active-status-toggle-option.active[data-value="no"] {
        background: #dc3545;
        color: white;
    }

    .active-status-toggle-option.active[data-value="retail"] {
        background: #28a745;
        color: white;
    }

    .active-status-toggle-option.active[data-value="wholesale"] {
        background: #007bff;
        color: white;
    }

    .active-status-toggle-option:hover:not(.active) {
        background: #e9ecef;
    }

/* Error Message Section - Figma Exact Styles */
.error-message-section {
    margin-top: 40px;
}


.error-message-section .error-title {
 
    font-style: normal;
    font-family: var(--page-font-family);
    font-weight: 400;
    font-size: 40px;
    line-height: 48px;
    align-items: center;
    text-align: center;
    color: var(--page-text-primary);
    margin: 0;
}



.error-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
}

.btn-back-home {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 13px 39px;
    gap: 16px;
    height: 54px;
    background: var(--page-primary);
    border: 1px solid var(--page-primary);
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .btn-back-home:hover {
        background: var(--page-primary);
        border-color: var(--page-primary);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 85, 255, 0.3);
    }

    .btn-back-home .icon {
        width: 16px;
        height: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .btn-back-home .icon svg {
            width: 16px;
            height: 16px;
        }

    .btn-back-home .btn-text {
        width: 99px;
        height: 28px;
        font-family: var(--page-font-family);
        font-style: normal;
        font-weight: 500;
        font-size: 15px;
        line-height: 28px;
        display: flex;
        align-items: center;
        text-align: center;
        color: #FFFFFF;
    }

.help-links-frame {
    
    flex-direction: row;
    align-items: flex-start;
    padding: 0px;
    gap: 24px;
    
}

.help-link-button {
    box-sizing: border-box;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 4px 8px;
    gap: 8px;
    background: rgba(255, 255, 255, 0.000001);
    border: 1px solid rgba(255, 255, 255, 0.000001);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .help-link-button:first-child {
        width: 181px;
        height: 32px;
    }

    .help-link-button:last-child {
        width: 195px;
        height: 32px;
    }

    .help-link-button:hover {
        background: rgba(13, 110, 253, 0.1);
    }

    .help-link-button .help-text {
        font-family: var(--page-font-family);
        font-style: normal;
        font-weight: 400;
        font-size: 16px;
        line-height: 22px;
        text-decoration-line: underline;
        color: var(--page-primary);
        background: rgba(255, 255, 255, 0.000001);
    }

/* Responsive Design for Parts King Error Page */
@media (max-width: 768px) {
   

    .mechanics-illustration {
        height: 250px;
        max-width: 400px;
    }

    .mechanic-background {
        width: 100px;
        height: 100px;
    }

    .gear-icon-1,
    .gear-icon-2 {
        font-size: 25px;
    }

    .car-body {
        width: 120px;
        height: 60px;
    }

  
    .error-message-section .error-title {
        width: 100%;
        height: auto;
        font-size: 32px;
        line-height: 40px;
    }

    .error-message-section .error-description {
        width: 100%;
        height: auto;
        font-size: 18px;
        line-height: 22px;
    }

    .help-links-frame {
        width: 100%;
        flex-direction: column;
        gap: 12px;
        height: auto;
    }

    .help-link-button:first-child,
    .help-link-button:last-child {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {

    .mechanics-illustration {
        height: 200px;
        max-width: 300px;
        flex-direction: column;
        gap: 20px;
    }

    .mechanic {
        height: 80px;
    }

    .mechanic-background {
        width: 80px;
        height: 80px;
    }

    .gear-icon-1,
    .gear-icon-2 {
        font-size: 20px;
    }

    .car-container {
        height: 80px;
        order: -1;
    }

    .car-body {
        width: 100px;
        height: 50px;
    }

    .error-message-section .error-title {
        font-size: 28px;
        line-height: 36px;
    }

    .error-message-section .error-description {
        font-size: 16px;
        line-height: 20px;
    }

    .btn-back-home {
        width: 100%;
        max-width: 280px;
        padding: 12px 24px;
    }

    .help-links-frame {
        gap: 8px;
    }
}




/* Invoice Page Styles */
.invoice-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--page-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

/* Invoice Header */
.invoice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid var(--page-border);
    position: relative;
}

.invoice-brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.crown-icon {
    font-size: 20px;
    color: #d4af37;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-parts {
    font-family: var(--page-font-family);
    font-size: 14px;
    font-weight: 400;
    color: var(--page-text-primary);
}

.brand-king {
    font-family: var(--page-font-family);
    font-size: 24px;
    font-weight: 700;
    color: var(--page-danger);
    margin-top: -2px;
}

.invoice-title-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 32px;
}

.invoice-title {
    font-family: var(--page-font-family);
    font-size: 32px;
    font-weight: 700;
    color: var(--page-text-primary);
    margin: 0;
}

.invoice-actions {
    display: flex;
    gap: 12px;
}

.btn-print {
    background: var(--page-content-bg);
    border: 1px solid var(--page-primary);
    color: var(--page-primary);
    padding: 8px 16px;
    border-radius: 6px;
    font-family: var(--page-font-family);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-print:hover {
    background: var(--page-primary);
    color: var(--page-bg);
}

.btn-download {
    background: var(--page-bg);
    border: 1px solid var(--page-border);
    color: var(--page-text-primary);
    padding: 8px 16px;
    border-radius: 6px;
    font-family: var(--page-font-family);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: var(--page-content-bg);
    border-color: var(--page-text-muted);
}

.btn-close-invoice {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--page-text-primary);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.btn-close-invoice:hover {
    background: var(--page-content-bg);
}

/* Order Summary */
.order-summary {
    padding: 20px 32px;
    border-bottom: 1px solid var(--page-border);
}

.order-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-label {
    font-family: var(--page-font-family);
    font-size: 14px;
    font-weight: 400;
    color: var(--page-text-muted);
}

.order-value {
    font-family: var(--page-font-family);
    font-size: 18px;
    font-weight: 700;
    color: var(--page-text-primary);
}

/* Invoice Details */
.invoice-details {
    padding: 24px 32px;
    /*border-bottom: 1px solid var(--page-border);*/
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.order-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.detail-label {
    font-family: var(--page-font-family);
    font-size: 14px;
    font-weight: 400;
    color: var(--page-text-muted);
    min-width: 120px;
}

.detail-value {
    font-family: var(--page-font-family);
    font-size: 16px;
    font-weight: 700;
    color: var(--page-text-primary);
    flex: 1;
}

.customer-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sold-to-title {
    font-family: var(--page-font-family);
    font-size: 16px;
    font-weight: 700;
    color: var(--page-primary);
    margin: 0;
}

.customer-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.customer-name {
    font-family: var(--page-font-family);
    font-size: 16px;
    font-weight: 700;
    color: var(--page-text-primary);
}

.customer-address {
    font-family: var(--page-font-family);
    font-size: 14px;
    font-weight: 400;
    color: var(--page-text-primary);
    line-height: 1.4;
}

.customer-contact {
    font-family: var(--page-font-family);
    font-size: 14px;
    font-weight: 400;
    color: var(--page-text-primary);
    line-height: 1.4;
}

/* Items Table */
.invoice-items {
    padding: 0 20px;
    /*border-bottom: 1px solid var(--page-border);*/
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.items-table thead {
    background: var(--page-content-bg);
}

.items-table thead th {
    padding: 16px 12px;
    text-align: left;
    font-family: var(--page-font-family);
    font-size: 14px;
    font-weight: 700;
    color: var(--page-text-primary);
    border: none;
}

.items-table thead th.col-item {
    text-align: left;
}

.items-table thead th.col-qty {
    text-align: center;
    width: 60px;
}

.items-table thead th.col-price {
    text-align: right;
    width: 100px;
}

.items-table tbody tr {
    border-bottom: 1px solid var(--page-border);
}

.items-table tbody tr:last-child {
    border-bottom: none;
}

.items-table tbody td {
    padding: 16px 12px;
    vertical-align: middle;
    border: none;
}

.item-cell {
    padding: 16px 12px !important;
}

.item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-icon {
    width: 32px;
    height: 32px;
    background: #ff8c42;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.item-details {
    flex: 1;
}

.item-name {
    font-family: var(--page-font-family);
    font-size: 14px;
    font-weight: 400;
    color: var(--page-text-primary);
    margin-bottom: 4px;
}

.item-part {
    font-family: var(--page-font-family);
    font-size: 12px;
    font-weight: 400;
    color: var(--page-text-muted);
}

.qty-cell {
    text-align: center;
    font-family: var(--page-font-family);
    font-size: 14px;
    font-weight: 400;
    color: var(--page-text-primary);
}

.price-cell {
    text-align: right;
    font-family: var(--page-font-family);
    font-size: 14px;
    font-weight: 400;
    color: var(--page-text-primary);
}

/* Financial Summary */
.invoice-summary {
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}

.summary-label {
    font-family: var(--page-font-family);
    font-size: 14px;
    font-weight: 400;
    color: var(--page-text-muted);
    text-align: right;
}

.summary-value {
    font-family: var(--page-font-family);
    font-size: 14px;
    font-weight: 400;
    color: var(--page-text-primary);
    text-align: right;
    min-width: 80px;
}

.summary-total {
    margin: 8px 0 0 auto;
    padding-top: 12px;
    border-top: 1px solid var(--page-border);
    width: fit-content;
    display: flex;
    justify-content: space-between;
}

.summary-total .summary-label {
    font-weight: 700;
}

.summary-total .summary-value {
    font-size: 16px;
    font-weight: 700;
    min-width: 80px;
}

/* Invoice Footer */
.invoice-footer {
    padding: 24px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.thank-you {
    font-family: var(--page-font-family);
    font-size: 14px;
    font-weight: 400;
    color: var(--page-text-primary);
}

.confirmation-number {
    font-family: var(--page-font-family);
    font-size: 14px;
    font-weight: 400;
    color: var(--page-text-primary);
}

/* Responsive Design for Invoice */
@media (max-width: 768px) {
    .invoice-container {
        margin: 16px;
        border-radius: 8px;
    }
    
    .invoice-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px 24px;
    }
    
    .invoice-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin: 0;
        width: 100%;
    }
    
    .invoice-title {
        font-size: 24px;
    }
    
    .invoice-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .btn-close-invoice {
        top: 12px;
        right: 12px;
    }
    
    .order-summary,
    .invoice-details,
    .invoice-items,
    .invoice-summary,
    .invoice-footer {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .items-table {
        font-size: 12px;
    }
    
    .items-table thead th,
    .items-table tbody td {
        padding: 12px 8px;
    }
    
    .item-info {
        gap: 8px;
    }
    
    .item-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .invoice-container {
        margin: 8px;
    }
    
    .invoice-header {
        padding: 16px 20px;
    }
    
    .invoice-title {
        font-size: 20px;
    }
    
    .invoice-actions {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .btn-print,
    .btn-download {
        width: 100%;
        justify-content: center;
    }
    
    .order-summary,
    .invoice-details,
    .invoice-items,
    .invoice-summary,
    .invoice-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .order-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .items-table thead th,
    .items-table tbody td {
        padding: 8px 4px;
        font-size: 11px;
    }
    
    .item-name {
        font-size: 12px;
    }
    
    .item-part {
        font-size: 10px;
    }
    
    .summary-row {
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 16px;
    }
}

/* Print Styles */
@media print {
    .invoice-container {
        box-shadow: none;
        border-radius: 0;
        max-width: none;
        margin: 0;
    }
    
    .btn-close-invoice,
    .invoice-actions {
        display: none;
    }
    
    .invoice-header {
        border-bottom: 2px solid var(--page-border);
    }
    
    .invoice-summary {
        border-top: 2px solid var(--page-border);
        background: var(--page-content-bg);
    }


}

/* Dashboard Page Styles */

.info-section-title {
    font-size: var(--page-font-size-lg);
    font-weight: var(--page-font-weight-semibold);
    color: var(--page-text-primary);
    margin-bottom: 12px;
}

.info-section-date {
    font-size: var(--page-font-size-base);
    color: var(--page-text-secondary);
    margin-bottom: 20px;
}

/* Today section styles */
.today-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.metric-card {
    background: var(--page-bg);
    border: 1px solid var(--page-border);
    border-radius: var(--page-border-radius-sm);
    padding: 16px;
    padding: 16px 24px;
    height: 92px;
    gap: 16px;
    angle: 0 deg;
    opacity: 1;
    border-radius: 8px;
    border-width: 1px;
}

    .metric-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }

.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 18px;
    color: white;
}

    .metric-icon.dollar {
        background: var(--page-success);
    }

    .metric-icon.orders {
        background: var(--page-primary);
    }

    .metric-icon.logins {
        background: var(--page-warning);
    }

    .metric-icon.stock {
        background: #6f42c1;
    }

    .metric-icon.lines {
        background: var(--page-danger);
    }

.metric-value {
    font-size: 24px;
    font-weight: var(--page-font-weight-bold);
    color: var(--page-text-primary);
    margin-bottom: 4px;
}

.metric-label {
    font-size: var(--page-font-size-sm);
    color: var(--page-text-secondary);
    font-weight: var(--page-font-weight-medium);
}

.info-button {
    background: var(--page-bg);
    border: 1px solid var(--page-primary);
    color: var(--page-primary);
    font-size: var(--page-font-size-base);
    font-weight: var(--page-font-weight-semibold);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    cursor: pointer;
    min-width: 180px;
    justify-content: space-between;
    width: 208px;
    height: 92px;
    padding: 16px;
    gap: 16px;
    angle: 0 deg;
    opacity: 1;
    border-radius: 8px;
    border-width: 1px;
}


    .info-button .subtitle {
        font-size: var(--page-font-size-sm);
        color: var(--page-text-secondary);
        font-weight: var(--page-font-weight-normal);
        margin-top: 2px;
    }

    .info-button .button-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .info-button .arrow-icon {
        color: var(--page-text-secondary);
        font-size: 14px;
    }

/* Table styles for 5-day report */
.info-table {
    border-radius: var(--page-border-radius);
    overflow: hidden;
}

    .info-table .table {
        margin-bottom: 0;
    }

        .info-table .table thead th {
            border-bottom: 1px solid var(--page-border);
            color: var(--page-text-secondary);
            font-size: var(--page-font-size-base);
            font-weight: var(--page-font-weight-bold);
            padding: 16px 12px;
        }

        .info-table .table tbody tr:nth-child(odd) {
            background: rgba(0, 0, 0, 0.02);
        }

        .info-table .table tbody td {
            padding: 16px 12px;
            vertical-align: middle;
            font-size: var(--page-font-size-base);
            color: var(--page-text-primary);
            border: none;
        }

/* Monthly statistics styles */
.month-navigation {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--page-border);
}

.month-tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--page-text-secondary);
    font-size: var(--page-font-size-base);
    font-weight: var(--page-font-weight-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

    .month-tab.active {
        color: var(--page-primary);
    }

        .month-tab.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--page-primary);
        }

    .month-tab:hover {
        color: var(--page-primary);
    }

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.stat-label {
    font-size: var(--page-font-size-base);
    color: var(--page-text-primary);
    font-weight: var(--page-font-weight-medium);
}

.stat-value {
    font-size: var(--page-font-size-base);
    color: var(--page-text-primary);
    font-weight: var(--page-font-weight-bold);
}

/* Responsive design for dashboard */
@media (max-width: 768px) {


    .today-metrics {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }

    .metric-card {
        padding: 12px;
    }

    .metric-value {
        font-size: 20px;
    }

    .month-navigation {
        flex-wrap: wrap;
        gap: 0;
    }

    .month-tab {
        padding: 8px 12px;
        font-size: var(--page-font-size-sm);
    }

    .info-table .table thead th,
    .info-table .table tbody td {
        padding: 8px 6px;
        font-size: var(--page-font-size-sm);
    }
}

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

    .info-button {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
        margin-top: 16px;
        min-width: auto;
    }

    .month-navigation {
        justify-content: center;
    }
}

/* Image & File Storage Page Styles */
.image-card {
    position: relative;
    border: 1px solid var(--page-border);
    border-radius: var(--page-border-radius-sm);
    overflow: hidden;
    background: var(--page-bg);
    transition: all 0.3s ease;
}

.image-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.image-card-checkbox {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.image-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.image-card-body {
    padding: 12px;
}

.image-card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--page-text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-card-meta {
    font-size: 12px;
    color: var(--page-text-muted);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.management-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 16px;
}

.management-info h3 {
    font-size: 20px;
    font-weight: 800;
    color: #45464D;
    margin-bottom: 8px;
}

.management-info p {
    font-size: 14px;
    color: var(--page-text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

.bulk-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.bulk-actions .btn {
    font-size: 14px;
    padding: 8px 16px;
}

.btn-delete-icon {
    background: transparent;
    border: 1px solid var(--page-border);
    color: var(--page-text-secondary);
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.btn-delete-icon:hover {
    background: var(--page-danger);
    border-color: var(--page-danger);
    color: white;
}

/* Responsive adjustments for Image & File Storage */
@media (max-width: 1200px) {
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .image-card-img {
        height: 140px;
    }
    
    .management-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bulk-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .image-card-img {
        height: 120px;
    }
    
    .image-card-body {
        padding: 8px;
    }
    
    .image-card-title {
        font-size: 12px;
    }
    
    .image-card-meta {
        font-size: 11px;
    }
}

/* Upload Images Modal Styles */
.upload-area {
    background: #F5F7FA;
    border: 2px dashed #D1D5DB;
    border-radius: var(--page-border-radius);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.upload-area:hover {
    background: #E8ECEF;
    border-color: var(--page-primary);
}

.upload-area.drag-over {
    background: #E3F2FD;
    border-color: var(--page-primary);
    border-width: 3px;
}

.upload-icon {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.upload-icon svg {
    width: 48px;
    height: 48px;
}

.upload-text {
    margin-top: 16px;
}

.upload-main-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--page-text-primary);
    margin-bottom: 8px;
}

.upload-sub-text {
    font-size: 14px;
    color: var(--page-text-muted);
    margin-bottom: 0;
}

.file-input {
    display: none;
}

.file-list {
    max-height: 300px;
    overflow-y: auto;
}

.file-item {
    background: var(--page-bg);
    transition: all 0.2s ease;
}

.file-item:hover {
    background: #F5F7FA;
}

.file-name {
    font-size: 14px;
    color: var(--page-text-primary);
    font-weight: 500;
}

.file-size {
    font-size: 12px;
}

/* Modal adjustments for upload */
.modal-header .modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--page-text-primary);
}

.modal-footer .btn {
    min-width: 100px;
}

/* Responsive adjustments for upload modal */
@media (max-width: 576px) {
    .upload-area {
        padding: 32px 16px;
    }
    
    .upload-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .upload-main-text {
        font-size: 14px;
    }
    
    .upload-sub-text {
        font-size: 12px;
    }
}

/* Slider Content Page - Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--page-text-secondary);
    padding: 6px 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-icon:hover {
    color: var(--page-primary);
    background: rgba(0, 85, 255, 0.1);
    border-radius: 4px;
}

.btn-icon.view-btn:hover {
    color: var(--page-primary);
}

.btn-icon.edit-btn:hover {
    color: var(--page-primary);
}

.btn-icon.delete-btn:hover {
    color: var(--page-danger);
    background: rgba(220, 53, 69, 0.1);
}

.btn-icon i {
    font-size: 14px;
}

/* Responsive adjustments for action buttons */
@media (max-width: 768px) {
    .action-buttons {
        gap: 4px;
    }
    
    .btn-icon {
        padding: 4px 6px;
    }
    
    .btn-icon i {
        font-size: 12px;
    }
}

/* Banner Creator Form Styles */
.form-section {
    background: var(--page-bg);
    border: 1px solid var(--page-border);
    border-radius: var(--page-border-radius);
    padding: 24px;
}

.form-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--page-text-primary);
    margin-bottom: 16px;
}

.banner-upload-area {
    background: #F5F7FA;
    border: 2px dashed #D1D5DB;
    border-radius: var(--page-border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-upload-area:hover {
    background: #E8ECEF;
    border-color: var(--page-primary);
}

.banner-upload-area.drag-over {
    background: #E3F2FD;
    border-color: var(--page-primary);
    border-width: 3px;
}

.banner-item {
    background: var(--page-bg);
    border: 1px solid var(--page-border);
    border-radius: var(--page-border-radius-sm);
    padding: 16px;
    transition: all 0.2s ease;
}

.banner-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.banner-thumbnail {
    width: 100px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--page-border);
}

.drag-handle {
    cursor: move;
    font-size: 16px;
}

.edit-banner-btn,
.delete-banner-btn {
    background: transparent;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
}

.edit-banner-btn:hover {
    background: rgba(0, 85, 255, 0.1);
    border-radius: 4px;
}

.delete-banner-btn:hover {
    background: rgba(220, 53, 69, 0.1);
    border-radius: 4px;
}

/* Responsive adjustments for banner creator */
@media (max-width: 768px) {
    .form-section {
        padding: 16px;
    }
    
    .banner-item {
        padding: 12px;
    }
    
    .banner-thumbnail {
        width: 80px;
        height: 50px;
    }
    
    .banner-item .row {
        flex-direction: column;
        gap: 12px;
    }
    
    .banner-item .col-auto,
    .banner-item .col {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .form-section-title {
        font-size: 16px;
    }
    
    .banner-thumbnail {
        width: 60px;
        height: 40px;
    }
}


/*Custom Pages related style*/


.element-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 90px;
    text-align: center;
}

    .element-btn:hover {
        background: #F9FAFB;
        border-color: var(--page-primary);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .element-btn i {
        font-size: 28px;
        margin-bottom: 8px;
        color: #374151;
    }

    .element-btn span {
        font-size: 13px;
        color: #374151;
        font-weight: 400;
    }

.add-elements-container {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 20px;
}

.add-elements-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

.page-structure-container {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 20px;
}

.page-structure-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

.page-structure-area {
    min-height: 350px;
    background: #FFFFFF;
}

.page-root-label {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 12px;
    font-weight: 500;
}

.structure-item {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 8px;
    position: relative;
    transition: all 0.2s ease;
}

    .structure-item:hover {
        background: #F9FAFB;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .structure-item.level-1 {
        margin-left: 32px;
    }

    .structure-item.level-2 {
        margin-left: 64px;
    }

.structure-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.structure-item-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #374151;
}

    .structure-item-label i.element-icon {
        font-size: 16px;
        color: #6B7280;
        width: 20px;
        text-align: center;
    }

.structure-item-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.structure-item:hover .structure-item-actions {
    opacity: 1;
}

.drag-indicator {
    color: #9CA3AF;
    cursor: move;
    font-size: 14px;
}

.arrow-container {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
}

.arrow-btn {
    background: transparent;
    border: none;
    color: #9CA3AF;
    padding: 4px;
    cursor: pointer;
    font-size: 18px;
}

    .arrow-btn:hover {
        color: var(--page-primary);
    }


/* Keeps description from flowing under the right-side buttons */
.title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.title-left {
    min-width: 0; /* allow truncation if needed */
}

.page-description {
    max-width: 70%;
    margin: 0;
}
/* adjust percentage as needed */
/* small responsive tweak so description truncates on very small screens */


/* Elements palette styling (kept minimal so existing classes still match) */
.element-btn {
    cursor: pointer;
    padding: .5rem;
    border-radius: .25rem;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    background: #fff;
}

    .element-btn:hover {
        border-color: #dee2e6;
        background: #f8f9fa;
    }

.structure-item {
    border: 1px solid #e9ecef;
    padding: .5rem;
    margin-bottom: .5rem;
    border-radius: .25rem;
    background: #fff;
}

.structure-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
}

.structure-item-label {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.element-icon {
    width: 20px;
}



/* Content Editor - Structure Items */
.structure-item {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    position: relative;
}

    .structure-item:hover {
        background: #F9FAFB;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    /* Hierarchical Indentation */
    .structure-item.level-1 {
        margin-left: 32px;
    }

    .structure-item.level-2 {
        margin-left: 64px;
    }

    .structure-item.level-3 {
        margin-left: 96px;
    }

/* Structure Item Layout */
.structure-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.structure-item-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #374151;
}

    .structure-item-label i.element-icon {
        font-size: 16px;
        color: #6B7280;
        width: 20px;
        text-align: center;
    }

/* Action Buttons */
.structure-item-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.structure-item:hover .structure-item-actions {
    opacity: 1;
}

.btn-icon {
    padding: 0.25rem 0.5rem;
    border: none;
    background: transparent;
}

    .btn-icon:hover {
        background: #f8f9fa;
        border-radius: 4px;
    }

/* Page Root Label */
.page-root-label {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
    margin-bottom: 12px;
}

/* Drop Zone Highlighting */
[data-droppable="true"].drop-zone-active {
    background: #f8f9fa;
    border: 2px dashed var(--page-primary, #0d6efd);
    transition: all 0.2s ease;
}

/* Page Structure Area */
.page-structure-area {
    min-height: 350px;
    background: #FFFFFF;
}