select.bg-green-100 {
    background-color: #d1fae5 !important;
}

select.bg-red-100 {
    background-color: #fee2e2 !important;
}

select.bg-blue-100 {
    background-color: #bfdbfe !important;
}

.textarea-large {
    @apply text-lg !important;
    font-size: 2rem !important;
}

td.original {
    display: none;
}

/* Increase the width and height of the select boxes */
select[multiple] {
    width: 400px; /* Adjust width to your preference */
    height: 250px; /* Adjust height to your preference */
}

.selector {
    width: 100% !important;
    max-width: 100% !important;
}

.tab {
    height: auto !important;
}

/* Traveller */
/* Progress bar transition */
.progress-bar-fill {
    transition: width 0.5s ease-in-out, background-color 0.3s ease;
}

/* Step opacity transition */
.step, .step-completed {
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
}

.step-replacing, .step-completed-replacing {
    opacity: 0;
}

/* Progress bar fixed to the top of the page */
#progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensure it stays on top of other content */
    background-color: white; /* Optional, to ensure the progress bar has a background */
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional shadow for better visibility */
}

/* Progress bar transition */
.progress-bar-fill {
    transition: width 0.5s ease-in-out, background-color 0.3s ease;
}

/* #system-status-static {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
} */

.module {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Dark mode variants for module */
:root.dark .module,
html.dark .module {
    background-color: #374151;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.status-indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator-small {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    padding-left: 5px;
    padding-right: 5px;
}

.status-indicator.green {
    background-color: #4CAF50;
}

.status-indicator.yellow {
    background-color: #FFC107;
}

.status-indicator.red {
    background-color: #F44336;
}

.status-indicator.gray {
    background-color: #9CA3AF;
}

/* Dark mode variants for status indicators */
:root.dark .status-indicator.green,
html.dark .status-indicator.green {
    background-color: #22C55E;
}

:root.dark .status-indicator.yellow,
html.dark .status-indicator.yellow {
    background-color: #EAB308;
}

:root.dark .status-indicator.red,
html.dark .status-indicator.red {
    background-color: #EF4444;
}

:root.dark .status-indicator.gray,
html.dark .status-indicator.gray {
    background-color: #6B7280;
}

.status-details {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    width: 800px;
}

.status-details h3, .status-details h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.status-details p {
    margin: 5px 0;
}

.iot-device {
    margin-bottom: 10px;
}

.iot-device p {
    color: inherit;
}

.iot-device small {
    color: #6B7280;
}

/* Dark mode variants for IoT devices */
:root.dark .iot-device small,
html.dark .iot-device small {
    color: #9CA3AF;
}

/* Fix sidebar transparency issue in dark mode */
:root.dark #nav-sidebar .flex.flex-col.min-h-screen.min-w-sidebar,
html.dark #nav-sidebar .flex.flex-col.min-h-screen.min-w-sidebar {
    background-color: transparent !important;
}

/* Ensure proper sidebar background in dark mode */
:root.dark #nav-sidebar,
html.dark #nav-sidebar {
    background-color: #111827 !important;
}

/* Fix header background in dark mode */
:root.dark .border-b.border-gray-200,
html.dark .border-b.border-gray-200,
:root.dark .border-b,
html.dark .border-b {
    background-color: #1F2937 !important;
    border-color: #374151 !important;
}

/* Specific header container fix */
:root.dark .px-4.lg\\:px-8,
html.dark .px-4.lg\\:px-8 {
    background-color: #1F2937 !important;
}

/* Ensure proper page background in dark mode */
:root.dark body,
html.dark body {
    background-color: #111827 !important;
}

:root.dark #main,
html.dark #main {
    background-color: #111827 !important;
}

:root.dark #content,
html.dark #content {
    background-color: #111827 !important;
}

/* Fix card text visibility in dark mode */
:root.dark .module,
html.dark .module {
    color: #F9FAFB !important;
}

:root.dark .module a,
html.dark .module a {
    color: #93C5FD !important;
}

:root.dark .module a:hover,
html.dark .module a:hover {
    color: #DBEAFE !important;
}

/* Ensure status cards are visible in dark mode */
:root.dark .bg-gray-50,
html.dark .bg-gray-50 {
    background-color: #374151 !important;
    color: #F9FAFB !important;
}

/* Fix system status wrapper */
:root.dark .system-status-wrapper,
html.dark .system-status-wrapper {
    background-color: #111827 !important;
}

/* Ensure container backgrounds are dark */
:root.dark .container,
html.dark .container {
    background-color: transparent !important;
}

/* Fix page wrapper */
:root.dark #page,
html.dark #page {
    background-color: #111827 !important;
}

/* Additional text color fixes */
:root.dark .text-gray-700,
html.dark .text-gray-700 {
    color: #D1D5DB !important;
}

:root.dark .text-gray-600,
html.dark .text-gray-600 {
    color: #D1D5DB !important;
}

/* Fix graph-section background in dark mode */
:root.dark #graph-section,
html.dark #graph-section {
    background-color: #111827 !important;
}


/* Layout Styling */
#fullscreen-content {
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-columns: 1fr 3fr;
    grid-template-areas:
            "graph graph"
            "log buttons";
    height: 100%;
    background-color: #f8fafc;
    overflow: hidden;
}

#graph-section {
    grid-area: graph;
    background-color: #fff;
    padding: 1rem;
    border-bottom: 2px solid #ddd;
    position: relative;
    grid-area: graph;
    background-color: #fff;
    padding: 1rem;
    border-bottom: 2px solid #ddd;
    position: relative;
    width: 100%;
    height: auto;
}

#buttons-section {
    grid-area: buttons;
    background-color: #f8fafc;
    overflow-y: auto;
    padding: 1rem;
}

#log-section {
    grid-area: log;
    background-color: #fff;
    overflow-y: auto;
    padding: 1rem;
    border-left: 2px solid #ddd;
}

#fullscreen-button {
    float: right;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

/* Popup Modal Styling */
#popup-overlay, #popup-overlay-confirm-weight {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

#popup-content, #popup-content-confirm-weight {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    width: 600px;
    margin: auto;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#popup-content h2, #popup-content-confirm-weight h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    line-height: 2rem;
}

#comment-textarea {
    width: 100%;
    height: 150px;
    margin: 1rem 0;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1.2rem;
}

#send-button, .popup-overlay-close {
    font-size: 2rem;
    padding: 0rem 1.5rem;
}

.related-widget-wrapper-link.delete-related {
    display: none !important;
}

.related-widget-wrapper-link.change-related {
    display: none !important;
}

.related-widget-wrapper-link {
    display: none !important;
}

.column-sequence {
    width: 20px;
}