@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;800&display=swap');

:root {
    --bg-color: #0d0d0d;
    --surface-color: #1a1a1a;
    --surface-hover: #252525;
    --primary-color: #ff8c00;
    --primary-hover: #ffbb33;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent-color: #ff5e00;
    --glass-bg: rgba(26, 26, 26, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    --border-radius: 12px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 140, 0, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 94, 0, 0.05) 0%, transparent 40%);
}

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

header {
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1.5rem;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 800;
}

h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.hero-content {
    flex: 1;
}

.server-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-left: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    border: 2px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.server-img:hover {
    transform: scale(1.05);
}

.url-list {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.url-list a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    margin-right: 1rem;
}

.url-list a:hover {
    color: var(--primary-color);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.menu-card {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.menu-card:hover {
    transform: translateY(-5px);
    background: var(--surface-hover);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.menu-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.menu-card .icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* System Stats Styling */
.stats-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-box {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    width: 100%;
}

.stat-box.half {
    flex: 1;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.stat-box h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-content {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    color: #00ff41; /* Classic terminal green for content or just light gray */
    white-space: pre-wrap;
    overflow-x: auto;
}

/* Specific styling for showdisk.pl and showsysinfo.pl outputs */
.filesystems table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.filesystems th {
    text-align: left;
    color: var(--primary-color);
    padding: 0.75rem 0.5rem;
    font-size: 0.8rem;
    border-bottom: 2px solid var(--glass-border);
}

.filesystems td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.85rem;
}

.filesystems tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Disk Usage Gauge Modernization */
.gauge {
    width: 120px;
    height: 8px;
    background: #333;
    border-radius: 4px;
    display: inline-block;
    overflow: hidden;
    vertical-align: middle;
    margin-left: 10px;
    border: 1px solid var(--glass-border);
}

.gauge > div {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    border-radius: 4px;
}

/* If the gauge shows "used" space in red/orange */
.gauge[data-status="warning"] > div {
    background: linear-gradient(90deg, #ff9800, #ff5722);
}

.gauge[data-status="critical"] > div {
    background: linear-gradient(90deg, #f44336, #d32f2f);
}

footer {
    margin-top: 4rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

main {
    animation: fadeIn 0.5s ease-out forwards;
}
