:root {
  --banner-color: #e3f5ff;
  --header-color: #01A7FF;
  --primary-color: #01A7FF;
  --secondary-color: #e3f5ff;
  --tertiary-color: #a4dcfa;
  --black: #000000;
  --white: #FFFFFF;
  --bg-color: var(--white);
  --text-color: #333;
  --title-text-color: #555555;
  --price-item-color: blue;
  --price-item-button-color: #f0f0f0;
  --price-item-button-border-color: #ddd;
  --edit-text-color: black;
  --edit-text-bg-color: white;
  --link-color: #0056b3;
  --link-visited-color: #00448c;
  --modal-bg-color: #f9f9f9;
  --hover-color: #004494;
  --toggle-active-color: #01A7FF;
  --flag-color: black;
}
.dark-mode {
  --banner-color: #5c5b5b;
  --header-color: #005f99;
  --bg-color: #1e1e1e;
  --text-color: #ccc;
  --primary-color: #005f99;
  --secondary-color: #2e2e2e;
  --tertiary-color: #444;
  --title-text-color: white;
  --price-item-color: white;
  --price-item-button-color: #f0f0f067;
  --price-item-button-border-color: #dddddd0b;
  --edit-text-color: white;
  --edit-text-bg-color: #2e2e2e;
  --link-color: #b38c00;
  --link-visited-color: #6f5802;
  --modal-bg-color: #3d3d3d;
  --hover-color: #004494;
  --toggle-active-color: #198a00;
  --flag-color: white;
}
html, body {
  background-color: var(--bg-color);
  transition: background-color 0.3s ease;
}
input[type="text"],
input[type="search"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea {
  background-color: var(--edit-text-bg-color);
  color: var(--edit-text-color);
}
select {
  background-color: var(--secondary-color);
  color: var(--text-color);
  appearance: none;
  -webkit-appearance: none;
}
select option,
option {
  background-color: var(--edit-text-bg-color);
  color: var(--edit-text-color);
}
body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; 
    height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    font-size: 12px;
    background-color: var(--bg-color);
    color: var(--text-color);
}
a:link {
  color: var(--link-color);
}
a:visited {
  color: var(--link-visited-color);
}
a:hover,
a:focus {
  color: var(--link-color);
  text-decoration: underline;
}
/* Active/clicked state */
a:active {
  color: var(--black);
}
.centered-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: var(--banner-color);
    height: 60px;
    font-weight: bold;
    position: relative;
    z-index: 1001;
}
.center-container {
    flex: 1;           
    text-align: center; 
    margin: 0 10px;    
}
.main-area {
    display: flex;
    flex: 1; 
    overflow: hidden;
}
.content {
    flex: 1;
    display: block;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}
.container {
    margin: 0 auto;
}
#status-bar {
    background-color: orange;
    font-size: 10px;
    color: white;
    padding: 4px;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    top: 0;
    left: 0;
}
h1 {
    color: --var(--title-text-color);
    text-align: center;
    padding: 20px 0;
    font-size: 16px;
}

h2 {
    color: --var(--title-text-color);
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
}

.navigation {
    font-size: 14px;
}

.navigation_login {
    font-size: 14px;
    padding-left: 20px;
}

.navigation_login_text {
    font-size: 14px;
    color: blue;
}

.navigation_login_header {
    font-size: 14px;
    font-weight: bold;
    padding-left: 10px;
}
.item {
    border: 2px solid var(--tertiary-color);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    background: var(--bg-color);
    transition: all 0.2s ease;
    position: relative;
}

.item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.item.focused {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(1, 167, 255, 0.2);
}

.item.verified {
    background: rgba(40, 167, 69, 0.05);
    border-color: #28a745;
}

.item.has-error {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.item-line-number {
    font-size: 12px;
    font-weight: bold;
    color: var(--primary-color);
    background: var(--secondary-color);
    padding: 4px 10px;
    border-radius: 4px;
}

.item-actions {
    display: flex;
    gap: 6px;
}

.item-action-btn {
    background: var(--secondary-color);
    border: none;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--primary-color);
    transition: all 0.2s ease;
    font-size: 14px;
}

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

.description {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.5;
}

.catalog_number {
    font-size: 13px;
    color: var(--title-text-color);
    margin-bottom: 12px;
    padding: 8px;
    background: var(--secondary-color);
    border-radius: 6px;
}

.catalog_number-price {
    font-weight: 600;
    color: var(--price-item-color);
}
input[type="submit"] {
    background-color: #0056b3;
    font-size: 11px;
    color: white;
    cursor: pointer;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    transition: background-color 0.3s;
}
input[type="number"] {
    display: inline-block;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}
input[type="date"] {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
input[type="submit"]:hover {
    background-color: #003d80; /* Darker shade on hover */
}
select, input[type="text"], button {
    display: inline-block;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

select {
    font-size: 11px;
    width: 220px;
}

button {
    background-color: var(--primary-color);
    white-space: nowrap;
    font-size: 12px;
    color: var(--white);
    cursor: pointer;
    border: none;
    transition: background-color 0.3s;
}

/* Reusable anchor-as-button styles */
a.btn-link,
button.btn-link {
    display:inline-block;
    background-color: var(--primary-color);
    color: var(--white) !important;
    text-decoration:none;
    padding:8px 12px;
    border-radius:4px;
    font-size:12px;
    line-height:1.2;
    border:1px solid var(--primary-color);
    cursor:pointer;
    transition: background-color .25s;
}
a.btn-link:hover,
button.btn-link:hover {
    background-color:#004494;
    text-decoration:none;
}
a.btn-link:active { background-color:#003d80; }
a.btn-link:focus { outline:2px solid #003d80; outline-offset:2px; }

/* Small variant */
a.btn-link.small, button.btn-link.small { padding:4px 8px; font-size:11px; }

button:hover {
    background-color: #004494;
}

button:disabled {
    background-color: #bbb;
    color: black;
    cursor: not-allowed;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.button-group button {
    padding: 8px 16px;
    border: 2px solid var(--tertiary-color);
    border-radius: 20px;
    background-color: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.button-group button:hover {
    border-color: var(--primary-color);
    background: var(--secondary-color);
}
.button-group button.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.button-group button.remove {
    border-color: #dc3545;
    color: #dc3545;
}

.button-group button.remove.selected {
    background-color: #dc3545;
    color: white;
}

.correct-catalog_number {
    display: none;
    margin-top: 10px;
}
.correct-catalog_number.active {
    display: block;
}

.dept-checkbox {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
}

.form-group {
    margin-bottom: 15px;
    width: 300px;
    align-items: center;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
}
.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
.error-message {
    color: red;
    margin-top: 5px;
    display: none;
}
.error {
    color: red;
    margin-top: 10px;
}

.status-success {
    color: green;
}

.status-warning {
    color: orange;
}

.status-failure {
    color: red;
}

/* Navbar Styles */
.navbar {
    width: 200px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Only apply transitions after page load to prevent flash */
.navbar.navbar-ready {
    transition: width 0.3s ease;
}

.navbar.navbar-ready .nav-label,
.navbar.navbar-ready .navbar-copyright,
.navbar.navbar-ready .navbar-version,
.navbar.navbar-ready .toggle-switch-text,
.navbar.navbar-ready a {
    transition: all 0.3s ease;
}

.navbar.collapsed {
    width: 60px;
    padding: 10px;
}

.navbar-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    margin-bottom: 10px;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
}

.navbar.collapsed .navbar-toggle {
    text-align: center;
}

.navbar-toggle:hover {
    background-color: var(--tertiary-color);
}

.navbar-items {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.navbar a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 12px;
    white-space: nowrap;
}

.navbar.collapsed a {
    justify-content: center;
    padding: 10px 5px;
}

.navbar a:hover {
    background-color: var(--tertiary-color);
}

.navigation.active {
    background-color: #0088d1;
}

.nav-icon {
    min-width: 20px;
    text-align: center;
    font-size: 18px;
}

.navbar.collapsed .nav-label {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.navbar-footer {
    margin-top: auto;
    padding-top: 20px;
}

.navbar.collapsed .navbar-footer {
    padding-top: 10px;
}

.navbar-copyright {
    text-align: center;
    margin: 10px 0 5px 0;
    font-size: 0.7em;
    line-height: 1.2;
}

.navbar.collapsed .navbar-copyright {
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
}

.navbar-version {
    margin: 0;
    font-size: 0.7em;
    text-align: center;
    line-height: 1.2;
}

.navbar.collapsed .navbar-version {
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
}

.navbar.collapsed .toggle-switch-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.navbar.collapsed .toggle-switch {
    justify-content: center;
}

.navigation.active {
    background-color: #0088d1;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
th, td {
    padding: 12px;
    text-align: left;
    word-wrap: break-word; /* Allow content to wrap */
    word-break: break-word; /* Break words if necessary */
}
th {
    background-color: var(--header-color);
    color: white;
}
tr:nth-child(even) {
    background-color: var(--secondary-color); 
}

/* Style for odd rows */
tr:nth-child(odd) {
    background-color: var(--tertiary-color) 
}
.hidden-frame {
    display: none;
}

tr:hover {
    background-color: var(--primary-color);
}
.remove-queue-button {
    background-color: red;
    white-space: nowrap;
    font-size: 12px;
    color: white;
    cursor: pointer;
    border: none;
}

.remove-queue-button:hover {
    background-color: darkred;
}

.remove-queue-text {
    color: red;
}

.remove-button {
    background-color: transparent;
    white-space: nowrap;
    font-size: 14px;
    color: red;
    cursor: pointer;
    border: none;
    margin-top: -8px;
    margin-bottom: -8px;
}

.remove-button:hover {
    background-color: var(primary-color);
    color: red;
}
.remove-button:disabled {
    background-color: transparent;
    color: darkred;
    cursor: not-allowed;
}

.edit-button {
    background-color: transparent;
    white-space: nowrap;
    color: orange;
    font-size: 14px;
    cursor: pointer;
    border: none;
    margin-top: -8px;
    margin-bottom: -8px;
}
.edit-button:hover {
    background-color: var(primary-color);
    color: var(--white);
}
.edit-button:disabled {
    background-color: transparent;
    color: gray;
    cursor: not-allowed;
}
.assign-button {
    background-color: transparent;
    white-space: nowrap;
    color: orange;
    font-size: 14px;
    cursor: pointer;
    border: none;
    margin-top: -8px;
    margin-bottom: -8px;
}
.assign-button:hover {
    background-color: var(primary-color);
    color: var(--white);
}
.assign-button:disabled {
    background-color: transparent;
    color: gray;
    cursor: not-allowed;
}
.unassign-button {
    background-color: transparent;
    white-space: nowrap;
    color: orange;
    font-size: 14px;
    cursor: pointer;
    border: none;
    margin-top: -8px;
    margin-bottom: -8px;
}
.unassign-button:hover {
    background-color: var(primary-color);
    color: var(--white);
}
.unassign-button:disabled {
    background-color: transparent;
    color: gray;
    cursor: not-allowed;
}

.centered-input {
    text-align: center;  /* Center-aligns text within the div */
}
#searchQuery {
    width: 800px;  /* Adjust the width as needed */
    height: 20px;  /* Adjust the height as needed */
    font-size: 14px;  /* Adjust the font size as needed */
    padding: 5px;  /* Add padding for better spacing */
}
.popover {
    display: none;
    position: absolute;
    background-color: var(--secondary-color);
    border: 1px solid #ccc;
    width: 40%;
    overflow: hidden;
    padding: 8px;
    z-index: 100;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
.popover.show {
    display: block;
}
button.confidence-button {
    height: 16px; /* Adjust the height to make the button smaller */
    padding: 2px 4px; /* Adjust the padding for better fit */
    font-size: 11px; /* Adjust the font size if necessary */
    line-height: 1; /* Adjust line-height to ensure text fits well */
}
#status-bar.hidden {
    display: none;
}
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

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

th.sorted-asc::after {
    content: " ▲";
    font-size: 0.8em;
}

th.sorted-desc::after {
    content: " ▼";
    font-size: 0.8em;
}
/* table styles */
#reportTable {
    position: absolute;
    width: 80%;
    border-collapse: collapse;
    table-layout: auto;
}

/* table headers and cells */
#reportTable th, #reportTable td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
    vertical-align: top;
    word-wrap: break-word;
    white-space: normal;
}

/* zebra striping */
#reportTable tr:nth-child(even) {
    background-color: var(--secondary-color);
}

/* hover effect */
#reportTable tr:hover {
    background-color: var(--tertiary-color);
}
.source_table {
    width: 100%;
    margin: 0px auto;
    border-collapse: collapse;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
}
.source_table th, .source_table td {
    background-color: var(--secondary-color);
    padding: 4px;
    text-align: left;
    word-wrap: break-word; /* Allow content to wrap */
    word-break: break-word; /* Break words if necessary */
}
.source_table th {
    background-color: var(--secondary-color);
    color: white;
    font-weight: bold;
}
.source_table tr:nth-child(even) {
    background-color: var(--secondary-color);
}
.source_table tr:hover {
    background-color: var(--secondary-color);
}

.plain_table {
    width: 100%;
    margin: 0px auto;
    background-color: transparent;
    border-collapse: collapse;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
}
.plain_table th, .plain_table td {
    color: var(--text-color);
    background-color: transparent;
    padding: 4px;
    text-align: left;
}
.plain_table th {
    background-color: transparent;
    font-weight: bold;
}
.plain_table tr:nth-child(odd),
.plain_table tr:nth-child(even) {
    background-color: transparent;
}
.plain_table tr:hover {
    background-color: transparent;
}

/* Style for the chart container */
.graph-container {
    position: relative;
    height: 400px; /* Fixed height to prevent vertical growth */
    width: 100%;
    margin-bottom: 20px;
}

#reportChart {
    max-width: 100%;
    height: 100%; /* Ensures the canvas fills the container */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #reportChart {
        height: 300px;
    }
}

@media (max-width: 480px) {
    #reportChart {
        height: 200px;
    }
}
#outerContainer {
    position: relative;
    height: 75vh;      /* viewport height */
    overflow: auto;
    border: 1px solid #ccc;
    font-family: 'Consolas', 'Menlo', 'DejaVu Sans Mono', 'Liberation Mono', 'Courier New', monospace;
    background-color: #1e1e1e;
}
#linesContainer {
    position: relative;
    width: 100%;
}
.log-line {
    height: 20px;
    overflow: hidden;
    white-space: nowrap;
    font-family: 'Consolas', 'Menlo', 'DejaVu Sans Mono', 'Liberation Mono', 'Courier New', monospace;
    position: absolute;
    left: 0;
    width: 100%;
}
.timestamp {
    color: yellow;
}
.server {
    color: lightblue;
}
.thread {
    color: blue;
}
.level-DEBUG {
    color: gray;
}
.level-INFO {
    color: white; 
}
.level-WARNING {
    color: orange;
}
.level-ERROR {
    color: red;
}
.unmatched {
    color: white; /* Or any color to indicate unmatched lines */
}
.itemstate_pending {
    color: blue
}
.itemstate_mapped {
    color: green
}
.itemstate_marked_correct {
    color: green
}
.itemstate_modified {
    color: orange
}
.itemstate_needs_clarification {
    color: orange
}
.itemstate_remove {
    color: red
}
.itemstate_unknown {
    color: gray
}
.catalog_number-description {
    display: block;
    font-size: 0.9em;
    color: #555; /* Adjust color as needed */
    margin-top: 4px;
}

.toggle-switch {
    display: flex;
    align-items: center;
    margin-left: 10px;
}
.toggle-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-switch-label {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 16px;
    background-color: #ccc;
    border-radius: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}
.toggle-switch-label::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s ease-in-out;
}
.toggle-switch input[type="checkbox"]:checked + .toggle-switch-label {
    background-color: var(--toggle-active-color); /* Change to your desired active color */
}
.toggle-switch input[type="checkbox"]:checked + .toggle-switch-label::after {
    transform: translateX(14px);
}
.toggle-switch-text {
    margin-left: 10px;
    font-size: 14px;
}
.toggle-switch input[type="checkbox"]:disabled + .toggle-switch-label {
    background-color: #ccc; /* Gray background for the disabled state */
    cursor: not-allowed;    /* Change cursor to indicate it's disabled */
}

.toggle-switch input[type="checkbox"]:disabled + .toggle-switch-label::after {
    background-color: #fff; /* Knob color when disabled */
    opacity: 0.6;           /* Make the knob appear faded */
}

.toggle-switch input[type="checkbox"]:disabled + .toggle-switch-label::before {
    content: '';            /* Optional: Add a cross icon or any indicator */
}
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--secondary-color);
    min-width: 200px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    z-index: 1;
    padding: 2px;
}

/* Show the dropdown content when the button is clicked */
.show {
    display: block;
}

#department-button {
    background-color: var(--primary-color);  /* Set background to secondary color */
    color: var(--white);            
    cursor: pointer;
}

/* Optional hover effect */
#department-button:hover {
    background-color: var(--hover-color);
}
.dropdown-content label {
    display: flex;
    align-items: center; /* Align items to the top */
    margin-top: 2px;
    margin-bottom: 2px;
}

.dropdown-content input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px; /* Adjust this value as needed */
    flex-shrink: 0;  /* Prevent checkbox from shrinking */
    width: 20px;
}
/* Styles for grayed out rows */
.grayed-out {
    color: gray;
    opacity: 0.6;
}
/* Styles for status label */
.status-new {
    color: gray;
    font-weight: bold;
}
.status-created {
    color: green;
    font-weight: bold;
}
.status-downloaded {
    color: orange;
    font-weight: bold;
}
.status-confirmed {
    color: gray;
    font-weight: bold;
}
.status-debitreq {
    color: red;
    font-weight: bold;
}
/* Styles for remarks */
.remarks-ok {
    color: green;
}
.remarks-warning {
    color: orange;
}
.remarks-error {
    color: rgb(255, 0, 0);
}
.success { color: green; }
.bulk-actions { margin-top: 10px; }
input, select, textarea { width: 300px; }
textarea { height: 80px; }
.hidden { display: none; }

/* Language Selector - Flag Button */
.language-selector-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 16px;
}

.language-flag-button {
    background-color: transparent;
    color: var(--flag-color);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 32px;
}

.dark-mode .language-flag-button {
    background-color: transparent;
}

.language-flag-button:hover {
    background-color: rgba(245, 245, 245, 0.5);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(1, 167, 255, 0.2);
    transform: translateY(-1px);
}

.dark-mode .language-flag-button:hover {
    background-color: rgba(58, 58, 58, 0.5);
}

.language-flag-button:active {
    transform: translateY(0);
}

.language-dropdown-menu {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    z-index: 1000;
    overflow: hidden;
}

.dark-mode .language-dropdown-menu {
    background-color: #2e2e2e;
    border-color: #444;
}

.language-dropdown-menu.show {
    display: block;
    animation: slideDown 0.2s ease;
}

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

.language-option {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    gap: 10px;
}

.language-option:hover {
    background-color: #f5f5f5;
}

.dark-mode .language-option:hover {
    background-color: #3a3a3a;
}

.language-flag {
    font-size: 16px;
    line-height: 1;
}

.language-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
}

.user-profile {
    position: relative;
    display: inline-block;
    margin-right: 20px;
}

.user-initials {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
}

.user-popup {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0;
    width: 280px;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    font-size: 14px;
    overflow: hidden;
    animation: slideDown 0.2s ease-out;
}

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

.user-popup-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0066cc 100%);
    color: white;
    text-align: center;
}

.user-popup-avatar {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.user-popup-name {
    font-size: 16px;
    font-weight: 600;
    margin-top: 8px;
}

.user-popup-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.08);
}

.user-popup-info {
    padding: 12px 0;
}

.user-popup-item {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 20px;
    transition: background-color 0.15s ease;
}

.user-popup-item:hover {
    background-color: var(--secondary-color);
}

.user-popup-item i {
    color: var(--primary-color);
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.user-popup-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-popup-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    text-align: right;
}

.user-popup form {
    padding: 12px 16px;
    background-color: var(--secondary-color);
}

.user-popup-logout {
    width: 100%;
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.user-popup-logout:hover {
    background-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.user-popup-logout:active {
    transform: translateY(0);
}

.user-popup-logout i {
    font-size: 16px;
}

.progress-wrapper {
    display: flex;
    /* Ensures items within are aligned in the center vertically */
    align-items: center;
    gap: 10px; /* space between the bar and the percentage text */
}

.progress-bar-container {
    width: 78vw;
    height: 20px;
    background-color: var(--secondary-color);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: var(--primary-color);
    border-radius: 5px;
}

/* By default, the text might be slightly taller or shorter than 20px, 
   so let's make it match the height of the bar */
#progress-percentage {
    line-height: 20px; 
    font-weight: bold;
}
.log-entries {
    width: 80vw;
    max-height: 60vh;
    overflow-y: auto;
    background-color: var(--secondary-color);
    padding: 5px;
    margin-top: 10px;
}
.log-error {
    color: red;
}
.log-warning {
    color: orange;
}
.log-info {
    color: var(--edit-text-color);
}
.upload-form label {
    display: inline-block;
    width: 120px;
}
 /* Modal styling */
  #modalOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
}
#editModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--modal-bg-color);
    padding: 20px;
    border-radius: 5px;
    z-index: 101;
    width: 800px; /* or your preferred width */
    max-height: 90vh;
    overflow-y: auto;
    padding-bottom: 10px;
}
.modal-header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;        /* allow children to wrap */
    background: var(--header-color);
    padding: 10px 15px;
    color: #fff;
    z-index: 2;
}

.modal-header .modal-alert-area {
    flex: 1 1 100%;
    margin-top: 10px;       
}

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: normal;
}

.modal-body {
    max-height: calc(90vh - 120px); /* header ≈60px tall */
    overflow-y: auto;
    padding: 15px;
}

.modal-buttons button {
    background: #fff;
    color: var(--primary-color);
    border: 1px solid #fff;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-left: 8px;
}
.modal-buttons button:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}
.modal-buttons button:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

.modal-form-group {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}
label {
    font-weight: bold;
}
.modal-buttons {
    text-align: right;
}
.modal-special-toggle {
    margin-bottom: 15px;
    padding: 5px 10px;  /* Reduced padding, especially top/bottom */
    background-color: transparent;  /* Remove background color */
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px; /* Slightly increased space between checkbox and label */
}

.modal-special-toggle input[type="checkbox"] {
    margin: 0;
    width: auto; /* Override the global input width setting */
    vertical-align: middle;
}

.modal-special-toggle label {
    margin: 0;
    font-weight: normal; /* Make it less prominent than other labels */
    vertical-align: middle;
}
#specialItemFields, #regularItemFields {
    padding: 10px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin-bottom: 15px;
}
.modal-error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}
.modal-form-group input[type="text"],
.modal-form-group input[type="email"],
.modal-form-group input[type="password"],
.modal-form-group input[type="number"],
.modal-form-group select,
.modal-form-group input[type="date"] {
  width: 100%;
  margin: 5px 0;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 11px;
  /* any other shared rules… */
}
.order-progress-container {
    width: 100%;
    background-color: #f1f1f1;
    border-radius: 4px;
    position: relative;
    height: 20px;
}

.order-progress-bar {
    height: 100%;
    background-color: #4CAF50;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.order-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: #000;
    text-shadow: 1px 1px 1px rgba(255,255,255,0.5);
}
.verify-progress-container {
    margin-bottom: 20px;
    padding: 10px;
    background-color: var(--secondary-color);
    border-radius: 5px;
}

.verify-progress-text {
    margin-bottom: 5px;
    font-weight: bold;
}

.verify-progress-bar-container {
    width: 100%;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.verify-progress-bar {
    height: 100%;
    background-color: #4CAF50;
    width: 0%;
}
.debit-number-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.debit-number-btn:hover {
    background-color: #c82333;
}
.info-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #01A7FF;
    color: white;
    font-weight: bold;
    font-style: italic;
    margin-left: 8px;
    border: none;
    cursor: pointer;
    font-size: 10px;
}

.info-button:hover {
    background-color: #0056b3;
}

.discount-item, .email-item {
    margin: 5px 0;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    display: flex;
    align-items: center;
}
.remove-item {
    margin-left: 10px;
    color: red;
    cursor: pointer;
}
.add-button {
    margin-top: 10px;
}
.flags-container {
    display: flex;
    flex-direction: column;
    background-color: var(--secondary-color);
    padding: 4px;            /* remove any ul/ol padding if you had it */
    max-height: 150px;     /* new: maximum height */
    overflow-y: auto;      /* new: scroll when content exceeds max-height */
}

/* each flag = one row, checkbox + label side by side */
.flag-item {
    display: flex;
    align-items: center;
    margin-bottom: 6px;    /* vertical spacing between flags */
}

/* pull the label right up against the box */
.flag-item input[type="checkbox"] {
    margin: 0 8px 0 0;      /* 8px gap to the right */
}

/* ensure no extra padding on the label */
.flag-item label {
    margin: 0 0 0 8px;      
    font-size: 11px;       /* match your other form text */
}
.search-box {
    margin-bottom: 20px;
}
.search-box input {
    padding: 8px;
    width: 300px;
}
.search-box button {
    padding: 8px 16px;
}
.stock-warning {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    font-size: 12px;
}

.dark-mode .stock-warning {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.stock-warning-text {
    color: #856404;
    font-weight: 500;
}

.dark-mode .stock-warning-text {
    color: #ffc107;
}

.info-popup .stock-status.low {
    color: #d9534f;
    font-weight: bold;
}

.info-popup .stock-status.ok {
    color: #5cb85c;
    font-weight: bold;
}
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.service-block {
    padding: 15px;
    border-radius: 5px;
    width: 250px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    color: #ffffff;
    font-weight: 500;
}

.service-name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 10px;
}

.service-value {
    font-size: 18px;
    margin-bottom: 10px;
}
.service-info {
    margin: 5px 0;
    font-size: 11px;
}

.service-status-success {
    background-color: #2ecc71;
    border: 1px solid #27ae60;
}

.service-status-warning {
    background-color: #f39c12;
    border: 1px solid #e67e22;
}

.service-status-failure {
    background-color: #e74c3c;
    border: 1px solid #c0392b;
}

.service-status-inactive {
    background-color: #7f8c8d;
    border: 1px solid #34495e;
}

.today-info {
    font-size: 10px; 
    color: #666;
    text-align: center;
    margin-top: 5px;
}

/* in-modal alerts */
.modal-alert-area {
    margin-bottom: 15px;
    display: none;
}
.modal-alert {
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: 500;
}
.modal-alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.modal-alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.modal-alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}
.modal-alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}
/* ---------- override global width/margin for checkboxes & radios ---------- */
input[type="checkbox"],
input[type="radio"] {
  width: auto !important;
  margin: 0 !important;
}

/* make the autocomplete pull-down dark in dark-mode */
.dark-mode .ui-autocomplete {
  background-color: var(--bg-color);
  color: var(--text-color);
  border: 1px solid var(--primary-color);
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  z-index: 2000;
}

.dark-mode .ui-autocomplete .ui-menu-item a {
  color: var(--text-color);
  padding: 6px 10px;
}

.dark-mode .ui-autocomplete .ui-menu-item.ui-state-focus a,
.dark-mode .ui-autocomplete .ui-menu-item.ui-state-active a {
  background-color: var(--primary-color);
  color: var(--white);
}
.ui-tooltip {
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--primary-color);
    padding: 8px 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
#editModalBody {
  display: grid;
  /*  auto-fit as many 200px columns as will fit, stretch to fill */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem; /* spacing between items */
}
/* make the items table span the full width */
#editModalBody fieldset {
  grid-column: 1 / -1;
}
/* dim & disable clicks on the editModal when a child modal is open */
#editModal.modal-disabled {
  filter: brightness(0.6);
  pointer-events: none;
}

/* full-screen dark overlay for the search modal */
#searchModalOverlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
}

/* center the search modal */
#searchModal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--modal-bg-color);
  z-index: 2001;
}
#totalAmount,
.total-warning-icon {
  display: inline-block;
  vertical-align: middle;
}
#searchResults tr.selected {
  background: var(--primary-color);
}
.items-table-wrapper {
    max-height: 50vh;
    overflow-y: auto;
}
.items-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
}
/* keep the table header stuck to the top of the wrapper */
.items-table-wrapper thead th {
    position: sticky;
    top: 0;
    background: var(--modal-bg-color);
    z-index: 1;
}
@media (max-height: 600px) {
    .items-table-wrapper {
        max-height: min(30vh, 200px);
    }
}
/* Add this to your styles.css */
.filter-section {
    background: var(--secondary-color);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

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

.filter-group label {
    font-weight: 600;
    min-width: 120px;
}

.filter-group input[type="text"] {
    flex: 1;
    max-width: 300px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
}

.filter-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}
.metric-icon {
    color: darkgreen;
    margin-right: 4px;
    position: relative;
    cursor: help;
}
.metric_table {
    width: 100%;
    margin: 0px auto;
    background-color: transparent;
    border-collapse: collapse;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
}
.metric_table th, .metric_table td {
    color: white;
    background-color: transparent;
    padding: 4px;
    text-align: left;
}
.metric_table th {
    background-color: transparent;
    font-weight: bold;
}
.metric_table tr:nth-child(odd),
.metric_table tr:nth-child(even) {
    background-color: transparent;
}
.metric_table tr:hover {
    background-color: transparent;
}

/* Modern verify page items grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

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

/* Flag Filter Styling - Shared by verify.php and flag_selection.php */
#flagSelection {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

#flagSelection label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--title-text-color) !important;
    white-space: nowrap !important;
}

#flagSelection select {
    padding: 8px 12px !important;
    border: 2px solid var(--tertiary-color) !important;
    border-radius: 6px !important;
    background: var(--bg-color) !important;
    color: var(--text-color) !important;
    font-size: 13px !important;
    min-width: 160px !important;
    transition: all 0.2s ease !important;
    width: auto !important;
    margin: 0 !important;
}

#flagSelection select:focus {
    border-color: var(--primary-color) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(1, 167, 255, 0.1) !important;
}

#flagSelection button {
    padding: 8px 16px !important;
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
}

#flagSelection button:hover {
    background: var(--hover-color) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

/* Modern search input styling - reusable across all pages */
.search-input-modern {
    padding: 8px 12px !important;
    border: 2px solid var(--tertiary-color) !important;
    border-radius: 6px !important;
    background: var(--bg-color) !important;
    color: var(--text-color) !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    height: auto !important;
    min-height: 38px !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.search-input-modern:focus {
    border-color: var(--primary-color) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(1, 167, 255, 0.1) !important;
}

.search-input-modern::placeholder {
    color: #999 !important;
    opacity: 1 !important;
}

/* Modern button styling - reusable across all pages */
.btn-modern {
    padding: 8px 16px !important;
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.btn-modern:hover {
    background: var(--hover-color) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.btn-modern:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.btn-modern:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Variant for success/green buttons */
.btn-modern.btn-success {
    background: #28a745 !important;
}

.btn-modern.btn-success:hover {
    background: #218838 !important;
}

/* Variant for danger/red buttons */
.btn-modern.btn-danger {
    background: #dc3545 !important;
}

.btn-modern.btn-danger:hover {
    background: #c82333 !important;
}

/* Variant for secondary/gray buttons */
.btn-modern.btn-secondary {
    background: #6c757d !important;
}

.btn-modern.btn-secondary:hover {
    background: #5a6268 !important;
}

/* Modern table styling for report tables */
#reportTable {
    width: 90%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-color);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

#reportTable thead {
    background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
    color: white;
}

#reportTable thead th {
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    user-select: none;
    width: 10vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#reportTable thead th:hover {
    background: rgba(255, 255, 255, 0.1);
}

#reportTable thead th.sorted-asc::after {
    content: ' ▲';
    font-size: 10px;
    margin-left: 4px;
}

#reportTable thead th.sorted-desc::after {
    content: ' ▼';
    font-size: 10px;
    margin-left: 4px;
}

#reportTable tbody tr {
    border-bottom: 1px solid var(--tertiary-color);
    transition: all 0.2s ease;
}

#reportTable tbody tr:hover {
    background: rgba(1, 167, 255, 0.05);
    transform: scale(1.001);
}

#reportTable tbody tr:last-child {
    border-bottom: none;
}

#reportTable tbody td {
    padding: 12px;
    font-size: 13px;
    color: var(--text-color);
    vertical-align: middle;
    width: 10vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#reportTable tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.dark-mode #reportTable tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Graph container styling */
.graph-container {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.graph-container canvas {
    max-height: 400px;
}

#reportResult h2 {
    color: var(--title-text-color);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

/* Pricelist Import Page Styling */
.upload-form {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 20px auto;
}

.upload-form .form-group {
    margin-bottom: 20px;
}

.upload-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--title-text-color);
    margin-bottom: 8px;
}

.upload-form input[type="file"] {
    cursor: pointer;
}

.upload-form input[type="file"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.alert {
    padding: 12px 20px;
    border-radius: 6px;
    margin: 20px 0;
    font-size: 14px;
    font-weight: 500;
}

.alert-error {
    background: #fee;
    color: #c00;
    border-left: 4px solid #c00;
}

.upload-info-card {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    border-left: 4px solid var(--primary-color);
}

.upload-info-card p {
    margin: 8px 0;
    font-size: 14px;
    color: var(--text-color);
}

.upload-info-card strong {
    color: var(--title-text-color);
}

.progress-section {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.progress-section h3 {
    color: var(--title-text-color);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.progress-description {
    padding-bottom: 15px;
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

.progress-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.progress-bar-container {
    flex: 1;
    height: 30px;
    background: var(--tertiary-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #28a745);
    border-radius: 15px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(1, 167, 255, 0.5);
}

.progress-percentage {
    font-size: 16px;
    font-weight: 600;
    color: var(--title-text-color);
    min-width: 50px;
    text-align: right;
}

.log-entries {
    margin-top: 20px;
    padding: 15px;
    background: var(--modal-bg-color);
    border-radius: 6px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Consolas', 'Menlo', 'DejaVu Sans Mono', 'Liberation Mono', 'Courier New', monospace;
    font-size: 13px;
}

.log-entries > div {
    padding: 6px 10px;
    margin: 4px 0;
    border-radius: 4px;
    border-left: 3px solid transparent;
}

.log-info {
    background: rgba(1, 167, 255, 0.1);
    border-left-color: var(--primary-color);
    color: var(--text-color);
}

.log-warning {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
    color: var(--text-color);
}

.log-error {
    background: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
    color: var(--text-color);
}
.no-data-found {
    text-align: center;
    color: var(--text-color);
    font-size: 16px;
    padding: 40px 0;
}
/* Spinner */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 50;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
}

.dark-mode .loading-overlay {
    background: rgba(30, 30, 30, 0.7);
}

.spinner {
    width: 40px;
    height: 40px;
    position: relative;
    animation: spinner-rotate 2s infinite linear;
}

.spinner::before,
.spinner::after {
    content: '';
    width: 60%;
    height: 60%;
    display: inline-block;
    position: absolute;
    top: 0;
    background-color: var(--primary-color);
    border-radius: 100%;
    animation: spinner-bounce 2s infinite ease-in-out;
}

.spinner::after {
    top: auto;
    bottom: 0;
    animation-delay: -1s;
}

@keyframes spinner-rotate {
    100% { transform: rotate(360deg); }
}

@keyframes spinner-bounce {
    0%, 100% { transform: scale(0); }
    50% { transform: scale(1); }
}
