:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent: #38bdf8;
    --accent-red: #f43f5e;
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at top right, #1e293b, #0f172a);
    color: var(--text-primary);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

h1 {
    font-weight: 600;
    font-size: 2rem;
    background: linear-gradient(to right, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    background: var(--card-bg);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--glass-border);
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .dashboard {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Ensure top cards in each column have the same height */
.stat-card,
.disk-card {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.25rem;
}

.stat-card {
    text-align: center;
}

.gauge-container {
    position: relative;
    width: 150px;
    height: 100px;
    margin: 0 auto;
}

svg {
    transform: rotate(0deg);
}

path.bg {
    fill: none;
    stroke: #334155;
    stroke-width: 8;
    stroke-linecap: round;
}

path.meter {
    fill: none;
    stroke: var(--accent);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease-out;
}

.percentage {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    font-weight: 600;
}

.details {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.disk-item {
    margin-bottom: 1rem;
}

.disk-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.progress-bar {
    height: 8px;
    background: #334155;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
}

.process-table-container {
    margin-top: 1rem;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

th {
    color: var(--text-secondary);
    font-weight: 400;
    padding: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

td {
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

tr:last-child td {
    border-bottom: none;
}

.process-name {
    color: var(--accent);
    font-weight: 600;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.explorer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.path {
    font-family: monospace;
    color: var(--accent);
    background: rgba(0, 0, 0, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.file-icon {
    margin-right: 1rem;
    font-size: 1.2rem;
}

.file-name {
    flex-grow: 1;
}

.file-size {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.file-item.dir .file-name {
    color: var(--accent);
    font-weight: 600;
}