/* OperatorOS - Premium Executive Design System */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #0f1115;
}

::-webkit-scrollbar-thumb {
    background: #343a40;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #495057;
}

/* Premium Elevation */
.elevation-sm {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
}

.elevation-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

.elevation-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

/* Glass Effect */
.glass-effect {
    background: rgba(33, 37, 41, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Smooth Transitions */
.transition-smooth {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus States */
.focus-ring:focus {
    outline: 2px solid #4A7FDE;
    outline-offset: 2px;
}

/* Premium Button Base */
.btn-base {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, #4A7FDE 0%, #3968BD 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5B8DEF 0%, #4A7FDE 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 127, 222, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #e9ecef;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Premium Card */
.premium-card {
    background: rgba(33, 37, 41, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.premium-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(33, 37, 41, 0.9);
}

/* Status Pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    letter-spacing: 0.025em;
}

.status-high {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.status-medium {
    background: rgba(251, 191, 36, 0.15);
    color: #fcd34d;
}

.status-low {
    background: rgba(74, 222, 128, 0.15);
    color: #86efac;
}

.status-info {
    background: rgba(74, 127, 222, 0.15);
    color: #93c5fd;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 40;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Premium Input */
input, textarea, select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e9ecef;
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #4A7FDE;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(74, 127, 222, 0.1);
}

input::placeholder, textarea::placeholder {
    color: #6c757d;
}

/* Typography Scale */
.text-title-xl {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.text-title-lg {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.text-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
}

.text-body {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #ced4da;
}

.text-caption {
    font-size: 0.75rem;
    line-height: 1.4;
    color: #adb5bd;
}

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

/* Hover States */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

/* Loading State */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 25%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.03) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
