body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s, color 0.3s;
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.page-header {
  background-color: #b0c4de; /* light steel blue */
  border: 2px solid #2f4f90;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.page-header h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: bold;
  color: #000;
}
.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

main {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.login-form {
    border-radius: 8px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 1rem;
}

.login-button {
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
}
.file-group {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #444;
}

.file-group-header {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    color: #ddd;
}

.file-group-content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-left: 10px;
}

.file-group-content.collapsed {
    display: none;
}
.login-button:hover {
    opacity: 0.9;
}

.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.error-message {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 4px;
}

.dashboard {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.file-selector {
    border-radius: 8px;
    padding: 1.5rem;
}

/* .file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
} */

.dashboard-layout {
    display: flex;
    gap: 20px;
}

.sidebar {
    width: 200px;
    background-color: #1e1e1e;
    padding: 10px;
    border-right: 1px solid #444;
    overflow-y: auto;
    max-height: 80vh;
}

#date-folders .date-folder {
    padding: 8px;
    margin-bottom: 6px;
    background-color: #2a2a2a;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    color: white;
    transition: background-color 0.3s;
}

#date-folders .date-folder:hover,
#date-folders .date-folder.active {
    background-color: #444;
}

.file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.file-item {
    background: #2a2a2a;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    color: white;
    width: 200px;
}

.file-item.selected {
    background: #005bbb;
}

.plots-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* .file-item {
    border-radius: 4px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-width: 150px;
} */

.file-item:hover {
    opacity: 0.9;
}

.file-item.selected {
    font-weight: bold;
}

.file-date {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.plots-container {
    border-radius: 8px;
    padding: 1.5rem;
}

.plots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45%, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.chart-container {
    border-radius: 4px;
    padding: 1rem;
    height: 300px;
}

.loading {
    padding: 1rem;
    text-align: center;
}

.no-files {
    padding: 1rem;
    text-align: center;
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    transition: .4s;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

.logout-btn {
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    text-decoration: none;
}

.logout-btn:hover {
    opacity: 0.9;
}

.dashboard-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;  /* Ensures the top alignment between sidebar and dashboard */
}

.dashboard {
    flex: 1; /* Ensures the dashboard takes the remaining space */
}
