/* Root Variables */
:root {
	--general-css-version: 'v2024.09.25-09:30';

    --border-width: 2px; /* Define a CSS variable for the border width */
    --primary-bg-color: #1e1e2f; /* Dark background color */
    --secondary-bg-color: #2e2e3f; /* Slightly lighter background color */
    --primary-text-color: #e0e0e0; /* Light text color */
    --secondary-text-color: #a0a0a0; /* Slightly darker text color */
    --accent-color: #4a6fa5; /* Blueish accent color */
    --hover-color: #3e3e4f; /* Hover color for interactive elements */
}

/****************************************************/
/* General Styles */
body {
    background-color: var(--primary-bg-color);
    color: var(--primary-text-color);
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Link Styles */
a {
    color: #76c7c0; /* Light blue color for links */
    text-decoration: underline; /* Always underline */
    text-decoration-color: rgba(118, 199, 192, 0.5); /* Faint underline */
}

a:hover {
    color: #ff6666; /* Light red color on hover */
    text-decoration-color: #ff6666; /* Light red underline on hover */
}

/* Button Styles */
button {
    background-color: var(--secondary-bg-color);
    color: var(--primary-text-color);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

button:hover {
    background-color: var(--hover-color);
}

button:active {
    background-color: var(--accent-color);
    color: var(--primary-bg-color);
}

/* Text Input Styles */
input[type="text"] {
    background-color: var(--secondary-bg-color);
    color: var(--primary-text-color);
    border: 1px solid var(--accent-color);
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

input[type="text"]:hover {
    background-color: var(--hover-color);
}

input[type="text"]:focus {
    background-color: var(--primary-bg-color);
    border-color: var(--accent-color);
    outline: none;
}

/****************************************************/
/* Sticky Container Styles */
.sticky-container {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 0;
    z-index: 10; /* Ensure it stays on top */
    background-color: var(--primary-bg-color); /* Match the background color */
    padding: 3px 0; /* Add some padding for spacing */
}

/* Ensure dropdown buttons, filters, and progress bar are within the sticky container */
.sticky-container .dropdown-button,
.sticky-container #filterContainer,
.sticky-container #progressContainer {
    margin-bottom: 2px; /* Add some spacing between elements */
}

/****************************************************/
/* Progress Bar Styles */
#progressContainer {
    width: 100%;
    background-color: var(--secondary-bg-color);
    border-radius: 25px;
    overflow: hidden;
    position: relative;
}

#progressBar {
    width: 0%;
    height: 20px;
    background-color: var(--accent-color);
    border-radius: 25px;
    text-align: center;
    line-height: 20px;
    color: white;
    overflow: visible;
    white-space: nowrap;
    position: relative;
}

#progressText {
    position: absolute; /* Position the text absolutely within the container */
    width: 100%; /* Ensure the text takes the full width of the container */
    text-align: center; /* Center the text */
    line-height: 20px; /* Match the line height of the progress bar */
    color: var(--primary-text-color); /* Text color */
}

/* Button Styles */
.pauseContinueButton, .cancelButton {
    background-color: rgba(118, 199, 192, 0.25); /* Semi-transparent background */
    border-radius: 25px;
    color: var(--primary-text-color);
    border: var(--border-width) solid var(--accent-color);
    cursor: pointer;
    text-align: center;
    display: flex; /* Use flexbox for centering */
    align-items: center; /* Vertically center the text */
    justify-content: center; /* Horizontally center the text */
    white-space: nowrap;
    position: absolute;
    top: 0;
    padding: 1px 10px 0px 10px; /* Add padding for better visibility */
}

.pauseContinueButton {
    right: 0px;
}

.cancelButton {
    right: 100px;
}

.pauseContinueButton:disabled {
    background-color: #a0d6d3;
    color: grey;
    cursor: not-allowed;
}

/****************************************************/
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8); /* Darker background for modal */
}

.modal-content {
    background-color: var(--secondary-bg-color);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    color: var(--primary-text-color);
}

.close-button {
    color: var(--secondary-text-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: var(--primary-text-color);
    text-decoration: none;
    cursor: pointer;
}

/****************************************************/
/* Tab-general Styles */
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: var(--secondary-bg-color);
}

.tab-general button {
    background-color: inherit;
    float: left;
    border: none;
    cursor: pointer;
    padding: 5px 16px;
    transition: 0.3s;
    color: var(--primary-text-color);
}

.tab-general button:hover {
    background-color: var(--hover-color);
}

.tab button.active {
    background-color: var(--accent-color);
}

.tabcontent {
    display: none;
    padding: 2px 2px;
    border: 1px solid #ccc;
    border-top: none;
    background-color: var(--primary-bg-color);
    color: var(--primary-text-color);
}

/****************************************************/
/* Error Container Styles */
#error-container {
    background-color: #5a2a00; /* Even darker orangeish background */
    padding: 1px 2px 10px 2px; /* top right bottom left */
}

#error-message {
    font-size: 12px;
    font-weight: bold;
    font-style: italic;
    color: #ffffff; /* White text color for readability */
}

#error-details {
    font-size: 10px;
    font-weight: normal;
    font-style: normal;
    color: #ffffff; /* White text color for readability */
}

/****************************************************/
/* Cache Container Styles */
#cache-container {
    background-color: var(--secondary-bg-color);
    font-size: 10px;
    font-weight: normal;
    font-style: normal;
    padding: 10px; /* Add padding for spacing */
    color: var(--primary-text-color);
}

/****************************************************/
/* Stats Container Styles */
.stats-container {
	position: relative;
	z-index: 11; /* Ensure it stays on top */
    display: block;
    float: right;
    width: 200px; /* Adjust width as needed */
    border-left: 1px solid #ccc;
    padding: 10px;
    background-color: var(--secondary-bg-color);
    color: var(--primary-text-color);
    font-size: 12px;
}

/****************************************************/
/* Footer Styles */
.sticky-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #000000;
  text-align: center;
  padding: 0; /* Remove padding */
  border-top: 1px solid #ccc;
  height: 15px; /* Set height to 10px */
  font-size: 9px;
  white-space: nowrap;
  line-height: 0px; /* Center text vertically */
}
/* Version Styles */
.version-js {
  color: #ADD8E6; /* Very light blue */
}

.version-html {
  color: #FFB6C1; /* Very light red */
}

.version-css {
  color: #D3D3D3; /* Very light grey */
}