:root {
    --primary-purple: #7c3aed;
    --dark-purple: #5b21b6;
    --light-purple: #a78bfa;
    --bg-dark: #0f0a1e;
    --bg-card: #1a1333;
    --bg-card-hover: #241b3d;
    --text-primary: #ffffff;
    --text-secondary: #c4b5fd;
    --border-color: #3730a3;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a0f2e 100%);
    color: var(--text-primary);
    min-height: 100vh;
}

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

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 2em;
    color: var(--primary-purple);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.logo h1 {
    font-size: 1.8em;
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-links a:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color);
}

.nav-links a.active {
    background: var(--primary-purple);
    color: white;
}

/* Main Grid */
main {
    margin-bottom: 30px;
}

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

.full-width {
    grid-column: 1 / -1;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
    border-color: var(--primary-purple);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.card-header i {
    font-size: 1.5em;
    color: var(--primary-purple);
}

.card-header h2 {
    font-size: 1.3em;
    color: var(--text-primary);
}

.card-body {
    color: var(--text-secondary);
}

/* Info Rows */
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(87, 83, 115, 0.2);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    color: var(--text-secondary);
    font-weight: 500;
}

.info-row .value {
    color: var(--light-purple);
    font-weight: 600;
}

/* Progress Bars */
.progress-container {
    margin: 10px 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
}

.progress-bar {
    height: 30px;
    background: rgba(87, 83, 115, 0.3);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-purple), var(--light-purple));
    border-radius: 15px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

/* Temperature Display */
.temp-display {
    text-align: center;
    padding: 20px;
}

.temp-value {
    font-size: 3em;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.temp-status {
    font-size: 1.1em;
    padding: 8px 20px;
    border-radius: 20px;
    background: var(--success);
    color: white;
    display: inline-block;
    font-weight: 600;
}

.temp-status.warning {
    background: var(--warning);
}

.temp-status.danger {
    background: var(--danger);
}

/* Process List */
.process-list {
    max-height: 300px;
    overflow-y: auto;
}

.process-item {
    display: grid;
    grid-template-columns: 1fr 2fr 100px 100px;
    gap: 15px;
    padding: 15px;
    background: var(--bg-card-hover);
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.process-item:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--primary-purple);
}

.no-process {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
    font-style: italic;
}

/* System Grid */
.system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-purple);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--light-purple);
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .process-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .logo h1 {
        font-size: 1.3em;
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.loading {
    animation: shimmer 2s infinite;
    background: linear-gradient(to right, var(--bg-card) 4%, var(--bg-card-hover) 25%, var(--bg-card) 36%);
    background-size: 1000px 100%;
}
