/* Custom styles for PriceHistBulkEditor */
:root {
    --primary-color: #00858D;
    --secondary-color: #009CA6;
    --accent-color: #33B0B8;
    --dark-footer: #253746;
    --disabled-color: #D3D3D3;
    --text-dark: #212121;
}

body {
    font-family: 'Roboto', sans-serif;
    margin-bottom: 60px;
}

/* Header styles */
.navbar {
    background-color: white !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    color: var(--text-dark) !important;
}

.nav-link {
    color: rgba(0, 0, 0, 0.85) !important;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
}

.nav-item .active {
    border-bottom: 2px solid var(--secondary-color);
}

.nav-link.activeText {
    color: var(--secondary-color) !important;
}

/* Main content area */
.main-content {
    padding: 2rem 0;
}

/* Card styles */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
}

/* Button styles */
.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border: 0;
}

.btn-primary:hover {
    color: #fff;
    background-color: var(--accent-color);
    border: none;
}

.btn-primary.disabled, .btn-primary:disabled {
    color: #fff;
    background-color: var(--disabled-color);
    border: 0;
}

/* Nav pills */
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: var(--secondary-color);
}

/* Footer styles */
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: var(--dark-footer);
    color: white;
    white-space: nowrap;
    line-height: 60px;
    padding: 0 20px;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Logo styles */
.app-logo {
    height: 40px;
    margin-right: 10px;
}

/* Authentication forms */
.auth-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Dashboard panels */
.dashboard-panel {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-panel-header {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.25rem;
}

/* Dropdown menu styles */
.dropbtn {
    background-color: #0062cc;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    border-radius: 8px;
    display: none;
    position: absolute;
    right: 0;
    background-color: #FFFFFF;
    min-width: 190px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    font-size: 13px;
}

.dropdown-content a {
    color: #212121;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #FFFFFF;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #0069d9;
}

.menu-header {
    line-height: 20px;
    font-size: 14px;
    font-weight: 400;
    font-family: Roboto;
}

.footerText {
    color: white;
}

/* Section freezing overlay styles */
.section-frozen {
    position: relative;
}

.section-frozen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1000;
    pointer-events: none;
}

/* Disable interactions for most elements when frozen, but keep status elements functional */
.section-frozen * {
    pointer-events: none;
}

/* Explicitly allow interactions for status/loading elements only */
.section-frozen #loadingIndicator,
.section-frozen #uploadProgress,
.section-frozen #exportLoadingIndicator,
.section-frozen .spinner-border,
.section-frozen .progress,
.section-frozen .progress-bar,
.section-frozen .loading-indicator,
.section-frozen .status-bar {
    pointer-events: auto !important;
    position: relative;
    z-index: 1001;
}

/* Ensure status elements remain fully visible */
.section-frozen #loadingIndicator *,
.section-frozen #uploadProgress *,
.section-frozen #exportLoadingIndicator *,
.section-frozen .spinner-border *,
.section-frozen .progress *,
.section-frozen .progress-bar * {
    pointer-events: auto !important;
}

/* Enhanced table styling for Export page */
.table-responsive {
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-group .btn-check:checked + .btn {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.card {
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Improved mobile responsiveness */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn-group-sm .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Enhanced modal table styling for scrollable table */
#reviewPricesAndValidationsModal .modal-dialog {
    max-width: 90vw;
}

#reviewPricesAndValidationsModal .table th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

#reviewPricesAndValidationsModal .table td {
    vertical-align: middle;
    padding: 0.5rem;
}

/* Improved scrollbar styling */
#reviewPricesAndValidationsModal .modal-body > div:first-child::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#reviewPricesAndValidationsModal .modal-body > div:first-child::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#reviewPricesAndValidationsModal .modal-body > div:first-child::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

#reviewPricesAndValidationsModal .modal-body > div:first-child::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
