:root {
    --bg-dark: #050b14;
    --primary-blue: #0D336D;
    --primary-green: #68C266;
    --panel-bg: rgba(13, 51, 109, 0.15);
    --panel-border: rgba(104, 194, 102, 0.2);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(13, 51, 109, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(104, 194, 102, 0.1), transparent 25%);
    min-height: 100vh;
}

.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
    padding: 20px;
    gap: 20px;
}

/* Sidebar */
.sidebar {
    width: 280px;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

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

.logo-img {
    max-width: 180px;
    height: auto;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

nav li {
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 15px;
}

nav li:hover, nav li.active {
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
}

nav li.active {
    border-left: 4px solid var(--primary-green);
}

.status-indicator {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    font-size: 14px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary-green);
    border-radius: 50%;
}

.pulse {
    box-shadow: 0 0 0 0 rgba(104, 194, 102, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(104, 194, 102, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(104, 194, 102, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(104, 194, 102, 0); }
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 5px;
}

header p {
    color: var(--text-muted);
}

.profile img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-green);
}

/* Metrics */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.metric-card {
    padding: 25px;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.metric-header h3 {
    font-size: 16px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.metric-value {
    font-size: 24px;
    font-weight: 800;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0%;
    transition: width 1s ease-in-out;
}

.fill-blue { background: var(--primary-blue); }
.fill-green { background: var(--primary-green); }

/* Tools */
.tools-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tool-card {
    padding: 25px;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border-color: var(--primary-green);
}

.tool-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
    color: white;
}

.tool-card h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

.tool-card p {
    font-size: 13px;
    color: var(--text-muted);
}

.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Terminal */
.logs-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.section-header {
    padding: 15px 25px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.window-controls span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 8px;
}

.window-controls span:nth-child(1) { background: #ff5f56; }
.window-controls span:nth-child(2) { background: #ffbd2e; }
.window-controls span:nth-child(3) { background: #27c93f; }

.terminal-window {
    padding: 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    overflow-y: auto;
    flex: 1;
}

.log-line {
    margin-bottom: 5px;
    color: #a3be8c;
}

.log-line.warn { color: #ebcb8b; }
.log-line.error { color: #bf616a; }
