/* Maya KB Admin Panel - Dashboard Styles */

:root {
    --bg-dark: #000000;
    --bg-card: #0a1929;
    --text-light: #ffffff;
    --text-dim: #94a3b8;
    --accent-blue: #2563eb;
    --accent-navy: #1e3a8a;
    --accent-yellow: #fbbf24;
    --accent-red: #ef4444;
    --border: #1e293b;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.last-updated {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.card h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 10px;
}

/* Old progress bar styles removed - using progress-bar-container system instead */

/* Health Metrics */
.metric {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.metric:last-child {
    border-bottom: none;
}

.metric-label {
    font-weight: 600;
}

.metric-value {
    color: var(--accent-blue);
}

.metric-value.warning {
    color: var(--accent-yellow);
}

.metric-value.critical {
    color: var(--accent-red);
}

/* Logs */
.log-entry {
    padding: 8px;
    margin: 5px 0;
    border-radius: 5px;
    font-family: monospace;
    font-size: 0.9rem;
}

.log-entry.error {
    background: rgba(220, 53, 69, 0.1);
    border-left: 3px solid var(--accent-red);
}

.log-entry.warning {
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid var(--accent-yellow);
}

.log-entry.info {
    background: rgba(37, 99, 235, 0.1);
    border-left: 3px solid var(--accent-blue);
}

/* Button */
.btn-process {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease;
}

.btn-process:hover {
    background: #0a3a5c;
}

.btn-process:disabled {
    background: var(--border);
    cursor: not-allowed;
}

#process-result {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
}

#process-result.success {
    background: rgba(37, 99, 235, 0.2);
    color: var(--accent-blue);
}

#process-result.error {
    background: rgba(220, 53, 69, 0.2);
    color: var(--accent-red);
}

/* Compact card style */
.card.compact {
    padding: 15px;
    margin-bottom: 15px;
}

.card.compact h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    padding-bottom: 8px;
}

/* Progress bar container */
.progress-bar-container {
    background: #0f172a;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin: 8px 0;
    border: 1px solid #1e293b;
}

.progress-bar {
    background: #3b82f6;
    height: 100%;
    transition: width 0.5s ease;
}

/* Temp tracker styles */
.temp-tracker {
    background: linear-gradient(135deg, var(--bg-card) 0%, #1e2a40 100%);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* Status indicators */
.status-active {
    color: var(--accent-blue);
    font-weight: bold;
}

.status-idle {
    color: var(--text-dim);
}

.status-success {
    color: var(--accent-blue);
}

/* Smaller header for compact view */
header {
    padding: 15px;
    margin-bottom: 10px;
}

header h1 {
    font-size: 2rem;
}

/* Last updated timestamp at top */
.last-updated-top {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 5px;
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .card {
        padding: 15px;
    }
}

