html {
    height: 100%;
    width: 100%;
    font-size: 16px;
    font-family: ui-sans-serif,-apple-system,system-ui,Segoe UI,Helvetica,Apple Color Emoji,Arial,sans-serif,Segoe UI Emoji,Segoe UI Symbol;
    scroll-behavior: smooth!important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}
body {
    margin: 0;
    padding: 20px;
    max-height: 100vh;
    overflow-y: auto;
    background-color: #171717;
    color: #ffffff;
}
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto 1fr;
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
    height: calc(100vh - 40px);
}
.header {
    grid-column: 1 / -1;
    background: #1a1a1a;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.status {
    display: flex;
    align-items: center;
    gap: 10px;
}
.indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}
.healthy { background-color: #1f3227; }
.unhealthy { background-color: #f44336; }
.updating { background-color: #5672cd; }
.action-panel {
    grid-column: 1;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}
.button {
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #8d5bd9;
    color: white;
    transition: background-color 0.3s;
    width: 100%;
}
.button:hover {
    background-color: #7a4db8;
}
.button:disabled {
    background-color: #4a4a4a;
    cursor: not-allowed;
}
.button.update:disabled {
    background-color: #4a4a4a;
    cursor: not-allowed;
}


.redirect-button {
    padding: 15px 30px;
    font-size: 18px;
    background-color: #6bdb9a;
    color: #1f3227;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
    font-weight: bold;
}
.redirect-button:hover {
    background-color: #5bc88a;
    transform: scale(1.05);
}
.redirect-button:disabled {
    background-color: #4a4a4a;
    cursor: not-allowed;
    transform: none;
}
.containers-panel {
    grid-column: 2;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}
.containers-table {
    width: 100%;
    border-collapse: collapse;
    color: #ffffff;
}
.containers-table th,
.containers-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #2a3d32;
}
.containers-table th {
    background-color: #1a1a1a;
    font-weight: bold;
}
.container-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}
.status-running { background-color: #1f3227; color: #6bdb9a; }
.status-exited { background-color: #f44336; color: white; }
.status-created { background-color: #5672cd; color: white; }
.status-paused { background-color: #8d5bd9; color: white; }
.action-buttons {
    display: flex;
    gap: 5px;
}
.action-button {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: white;
}
.stop-button {
    background-color: #f44336;
}
.stop-button:hover {
    background-color: #d32f2f;
}
.restart-button {
    background-color: #5672cd;
    color: white;
}
.restart-button:hover {
    background-color: #4a5fb8;
}
.action-button:disabled {
    background-color: #4a4a4a;
    cursor: not-allowed;
}
.logs-panel {
    grid-column: 1 / -1;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    /* overflow-y: auto;
    min-height: 150px; */
    /* max-height: 150px; */
}
.logs {
    font-family: monospace;
    white-space: pre-wrap;
    background-color: #1a1a1a;
    padding: 15px;
    border-radius: 4px;
    height: 150px;
    overflow-y: auto;
    color: #ffffff;
}
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px;
    border-radius: 4px;
    color: white;
    display: none;
    z-index: 1000;
}
.toast-success { background-color: #1f3227; color: #6bdb9a; }
.toast-error { background-color: #f44336; }
.savefiles-section {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin-top: 15px;
}
.savefiles-section h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: bold;
}
.input {
    width: 50%;
    padding: 8px 12px;
    margin-right: 10px;
    border: 1px solid #4a4a4a;
    border-radius: 4px;
    background-color: #1a1a1a;
    color: #ffffff;
    font-size: 14px;
}
.save-button {
    width: 30%;
    padding: 8px 15px;
    background-color: #8d5bd9;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}
.save-repository-button {
    padding: 8px 15px;
    background-color: #5672cd;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.save-button:hover {
    background-color: #7a4db8;
}
.error-message {
    color: #f44336;
    margin-top: 5px;
    display: none;
}
.container-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.action-button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background-color: #8d5bd9;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.action-button:hover {
    background-color: #7a4db8;
}
.action-button i {
    font-size: 14px;
}
.button.update {
    background-color: #d19921;
}
.button.update:hover {
    background-color: #b37d1b;
}
.button.stop {
    background-color: #ff2f2f;
}
.button.stop:hover {
    background-color: #d32f2f;
}
.button.stop:disabled {
    background-color: #4a4a4a;
    cursor: not-allowed;
}
.logs-box {
    background-color: #1a1a1a;
    padding: 15px;
    border-radius: 4px;
    height: 150px;
    overflow-y: auto;
    color: #ffffff;
}
.logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.margin-top-2 {
    margin-top: 0.5rem;
}
#clear-logs-button {
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    width: auto;
}
#export-volume-button {
    background-color: #5672cd;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    width: auto;
}
#import-volume-button {
    background-color: #d19921;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    width: auto;
}

.hidden {
  display: none !important;
}