/**
 * Ravnix OS - Dark Theme Color Scheme
 * Version: 1.0
 * Last Updated: February 17, 2026
 * 
 * This is the official color scheme for all Ravnix OS interfaces.
 * Apply this theme consistently across all portals, tablet apps, and web interfaces.
 */

:root {
    /* Primary Color Palette */
    --ravnix-bg-primary: #1a202c;        /* Dark Navy - Main background */
    --ravnix-bg-secondary: #2d3748;      /* Dark Gray - Cards, panels, elevated surfaces */
    --ravnix-bg-tertiary: #374151;       /* Medium Gray - Hover states, secondary cards */
    
    /* Text Colors */
    --ravnix-text-primary: #ffffff;      /* White - Headings, primary text */
    --ravnix-text-secondary: #a0aec0;    /* Light Gray - Body text, descriptions */
    --ravnix-text-tertiary: #718096;     /* Medium Gray - Muted text, labels */
    --ravnix-text-disabled: #4a5568;     /* Dark Gray - Disabled text */
    
    /* Accent Colors */
    --ravnix-accent-primary: #fbbf24;    /* Gold - Primary actions, links */
    --ravnix-accent-hover: #f59e0b;      /* Dark Gold - Hover states */
    --ravnix-accent-primary-hover: #f59e0b; /* Dark Gold - Hover alias */
    --ravnix-accent-warning: #fbbf24;    /* Yellow - Warnings, badges */
    --ravnix-accent-success: #10b981;    /* Green - Success states */
    --ravnix-accent-danger: #ef4444;     /* Red - Errors, critical actions */
    --ravnix-accent-info: #3b82f6;       /* Blue - Informational elements */
    
    /* Border Colors */
    --ravnix-border-light: #4a5568;      /* Light border for dark backgrounds */
    --ravnix-border-medium: #374151;     /* Medium border */
    --ravnix-border-dark: #1f2937;       /* Dark border */
    
    /* Shadow */
    --ravnix-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --ravnix-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --ravnix-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Base Styles */
body {
    background: var(--ravnix-bg-primary);
    color: var(--ravnix-text-secondary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
    color: var(--ravnix-text-primary);
}

/* Cards and Panels */
.ravnix-card,
.card,
.panel {
    background: var(--ravnix-bg-secondary);
    color: var(--ravnix-text-secondary);
    border-radius: 12px;
    box-shadow: var(--ravnix-shadow-sm);
}

.ravnix-card-title,
.card-title {
    color: var(--ravnix-text-primary);
}

/* Headers and Toolbars */
.header,
.toolbar,
.app-header {
    background: var(--ravnix-bg-secondary);
    color: var(--ravnix-text-primary);
    box-shadow: var(--ravnix-shadow-md);
}

/* Buttons */
.btn-primary,
.ravnix-btn-primary {
    background: var(--ravnix-accent-primary);
    color: var(--ravnix-text-primary);
    border: none;
}

.btn-primary:hover,
.ravnix-btn-primary:hover {
    background: var(--ravnix-accent-hover);
}

.btn-success {
    background: var(--ravnix-accent-success);
    color: var(--ravnix-text-primary);
}

.btn-danger {
    background: var(--ravnix-accent-danger);
    color: var(--ravnix-text-primary);
}

.btn-warning {
    background: var(--ravnix-accent-warning);
    color: var(--ravnix-bg-primary);
}

/* Tables */
table {
    background: var(--ravnix-bg-secondary);
    color: var(--ravnix-text-secondary);
}

th {
    background: var(--ravnix-bg-tertiary);
    color: var(--ravnix-text-primary);
    border-bottom: 2px solid var(--ravnix-border-medium);
}

td {
    border-bottom: 1px solid var(--ravnix-border-medium);
}

tr:hover {
    background: var(--ravnix-bg-tertiary);
}

/* Forms */
input,
select,
textarea {
    background: var(--ravnix-bg-primary);
    color: var(--ravnix-text-primary);
    border: 2px solid var(--ravnix-border-light);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--ravnix-accent-primary);
    outline: none;
}

input::placeholder {
    color: var(--ravnix-text-tertiary);
}

/* Status Badges */
.status-badge {
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.85em;
    font-weight: 600;
}

.status-scheduled,
.status-pending {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.status-in-progress,
.status-in_progress {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.status-completed,
.status-success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.status-cancelled,
.status-error {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* Modals */
.modal-content {
    background: var(--ravnix-bg-secondary);
    color: var(--ravnix-text-secondary);
    box-shadow: var(--ravnix-shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--ravnix-border-medium);
}

.modal-header h2,
.modal-header h3 {
    color: var(--ravnix-text-primary);
}

/* Links */
a {
    color: var(--ravnix-accent-primary);
}

a:hover {
    color: var(--ravnix-accent-hover);
}

/* Empty States */
.empty-state {
    color: var(--ravnix-text-tertiary);
}

/* Loading States */
.loading {
    color: var(--ravnix-accent-primary);
}

/* Error Messages */
.error,
.alert-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Success Messages */
.success,
.alert-success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Warning Messages */
.warning,
.alert-warning {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Info Messages */
.info,
.alert-info {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Scrollbar Styling (Webkit browsers) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--ravnix-bg-tertiary);
    border-radius: 6px;
}

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

/* Back Button */
.back-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--ravnix-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Metric Cards (for dashboards) */
.metric-card {
    background: var(--ravnix-bg-secondary);
    box-shadow: var(--ravnix-shadow-sm);
}

.metric-value {
    color: var(--ravnix-text-primary);
}

.metric-label {
    color: var(--ravnix-text-tertiary);
}

/* Job Cards */
.job-card {
    background: var(--ravnix-bg-secondary);
    box-shadow: var(--ravnix-shadow-sm);
}

.job-card:hover {
    box-shadow: var(--ravnix-shadow-md);
}

.job-card-title {
    color: var(--ravnix-text-primary);
}

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

/* Gradient Headers (optional alternative) */
.gradient-header {
    background: linear-gradient(135deg, var(--ravnix-accent-primary) 0%, var(--ravnix-accent-hover) 100%);
    color: var(--ravnix-text-primary);
}
