/* Root variables for theming */
:root {
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --card-bg: #ffffff;
    --card-border: rgba(0,0,0,.125);
    --sidebar-bg: #343a40;
    --sidebar-text: #ffffff;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --card-bg: #1e1e1e;
    --card-border: rgba(255,255,255,.125);
    --sidebar-bg: #000000;
    --sidebar-text: #e0e0e0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* Sidebar Wrapper */
#wrapper {
    display: flex;
    min-height: 100vh;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    transition: all 0.3s;
}

#sidebar .nav-link {
    color: rgba(255,255,255,.8);
    font-weight: 500;
    padding: 15px 20px;
}

#sidebar .nav-link:hover, 
#sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255,255,255,.1);
}

#page-content-wrapper {
    flex-grow: 1;
    padding: 20px;
    overflow-x: hidden;
}

/* Material Inspired Cards */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--card-border);
}

/* Terminal Area */
.terminal-container {
    background: #000;
    color: #0f0;
    font-family: 'Courier New', Courier, monospace;
    padding: 15px;
    border-radius: 5px;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
    font-size: 14px;
}

.terminal-input-group {
    margin-top: 10px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Status dots */
.status-dot {
    height: 12px;
    width: 12px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}
.status-online { background-color: #28a745; }
.status-offline { background-color: #dc3545; }
