* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0f0f0f;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 12px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #fff;
}

header p {
    color: #999;
    font-size: 1.1em;
}

.card {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.card h2 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 1.5em;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

/* Disk Stats */
.disk-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.disk-stat {
    background: #252525;
    padding: 20px;
    border-radius: 8px;
}

.disk-stat h3 {
    color: #999;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.disk-stat .usage {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.disk-stat .usage.warning {
    color: #ff9800;
}

.disk-stat .usage.danger {
    color: #f44336;
}

.disk-stat .usage.ok {
    color: #4caf50;
}

.disk-stat .bar {
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.disk-stat .bar-fill {
    height: 100%;
    background: #4caf50;
    transition: width 0.3s;
}

.disk-stat .bar-fill.warning {
    background: #ff9800;
}

.disk-stat .bar-fill.danger {
    background: #f44336;
}

.disk-stat .details {
    font-size: 0.9em;
    color: #999;
}

/* Top Directories */
.controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.controls input {
    flex: 1;
    padding: 10px;
    background: #252525;
    border: 1px solid #333;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 1em;
}

.controls button {
    padding: 10px 20px;
    background: #2196f3;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.2s;
}

.controls button:hover {
    background: #1976d2;
}

.top-dirs {
    display: grid;
    gap: 10px;
}

.dir-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #252525;
    border-radius: 6px;
    transition: background 0.2s;
}

.dir-item:hover {
    background: #2a2a2a;
}

.dir-item .path {
    flex: 1;
    font-family: 'Courier New', monospace;
    color: #e0e0e0;
}

.dir-item .size {
    font-weight: bold;
    color: #2196f3;
    margin-left: 20px;
}

/* File Browser */
.breadcrumb {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    padding: 10px;
    background: #252525;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    flex-wrap: wrap;
}

.breadcrumb span {
    cursor: pointer;
    color: #2196f3;
}

.breadcrumb span:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    color: #666;
    cursor: default;
}

.file-list {
    display: grid;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #252525;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.file-item:hover {
    background: #2a2a2a;
}

.file-item.flagged {
    border-left: 4px solid #ff9800;
}

.file-item .icon {
    margin-right: 12px;
    font-size: 1.2em;
}

.file-item .name {
    flex: 1;
    font-family: 'Courier New', monospace;
}

.file-item .size {
    color: #999;
    margin-right: 15px;
    min-width: 80px;
    text-align: right;
}

.file-item .modified {
    color: #666;
    font-size: 0.9em;
    margin-right: 15px;
}

.file-item .flag-btn {
    padding: 4px 12px;
    background: #333;
    border: none;
    border-radius: 4px;
    color: #e0e0e0;
    cursor: pointer;
    font-size: 0.9em;
}

.file-item .flag-btn:hover {
    background: #444;
}

.file-item .flag-btn.flagged {
    background: #ff9800;
    color: #000;
}

/* Backup Jobs */
.backup-jobs {
    display: grid;
    gap: 12px;
}

.job-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #252525;
    border-radius: 6px;
}

.job-item .info {
    flex: 1;
}

.job-item .name {
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.job-item .schedule {
    color: #999;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

.job-item button {
    padding: 8px 16px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.job-item button:hover {
    background: #45a049;
}

/* Snapshots */
.snapshots {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}

.snapshot-item {
    padding: 12px;
    background: #252525;
    border-radius: 6px;
}

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

.snapshot-item .id {
    font-family: 'Courier New', monospace;
    color: #2196f3;
}

.snapshot-item .time {
    color: #999;
    font-size: 0.9em;
}

.snapshot-item .paths {
    color: #666;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

/* Docker */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tab {
    padding: 10px 20px;
    background: #252525;
    color: #999;
    border: none;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    transition: all 0.2s;
}

.tab.active {
    background: #2196f3;
    color: white;
}

.docker-controls {
    margin-bottom: 15px;
}

.docker-controls button {
    padding: 10px 20px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.docker-controls button:hover {
    background: #d32f2f;
}

.docker-list {
    display: grid;
    gap: 8px;
}

.docker-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #252525;
    border-radius: 6px;
}

.docker-item .info {
    flex: 1;
}

.docker-item .name {
    font-family: 'Courier New', monospace;
    color: #e0e0e0;
    margin-bottom: 4px;
}

.docker-item .meta {
    color: #666;
    font-size: 0.9em;
}

.docker-item .size {
    color: #2196f3;
    font-weight: bold;
    margin-left: 20px;
}

/* Utility */
button.danger {
    background: #f44336 !important;
}

button.danger:hover {
    background: #d32f2f !important;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.error {
    padding: 12px;
    background: #f44336;
    color: white;
    border-radius: 6px;
    margin-bottom: 15px;
}