/* 
 * Oscillation Design - Unified Design System
 * Professional industrial aesthetic across all pages
 */

/* ============================================
   TYPOGRAPHY
   ============================================ */
body { 
    font-family: 'IBM Plex Mono', monospace; 
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

/* ============================================
   COLOR SYSTEM - Industrial Theme
   ============================================ */
:root {
    /* Primary Colors */
    --navy: #1e3a8a;
    --navy-dark: #1e293b;
    --navy-darker: #0f172a;
    
    /* Accent Colors */
    --red: #991b1b;
    --red-light: #b91c1c;
    --red-dark: #7f1d1d;
    
    /* Neutral Colors */
    --slate: #334155;
    --slate-light: #64748b;
    --slate-lighter: #94a3b8;
    --gray-bg: #f1f5f9;
    --white: #ffffff;
    
    /* Status Colors */
    --success: #059669;
    --warning: #d97706;
    --error: #dc2626;
    --info: #0284c7;
}

/* ============================================
   BUTTONS - Consistent CTA Styling
   ============================================ */

/* Primary Button (Red) */
.btn-primary {
    background-color: var(--red);
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--red-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(153, 27, 27, 0.3);
}

/* Secondary Button (Navy) */
.btn-secondary {
    background-color: var(--navy);
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--navy-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

/* Outline Button */
.btn-outline {
    background-color: transparent;
    color: var(--navy);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    border: 2px solid var(--navy);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background-color: var(--navy);
    color: var(--white);
}

/* Danger Button */
.btn-danger {
    background-color: var(--error);
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

/* ============================================
   CARDS - Professional Feature Cards
   ============================================ */

.feature-card, .analysis-card, .dashboard-card {
    background: var(--white);
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.feature-card:hover, .analysis-card:hover, .dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--red);
}

/* ============================================
   NAVIGATION - Consistent Active States
   ============================================ */

.nav-item {
    cursor: pointer;
    border-left: 4px solid transparent;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    color: var(--slate);
    font-weight: 500;
}

.nav-item.active {
    border-left-color: var(--red);
    background-color: #fef2f2;
    color: var(--red-dark);
}

.nav-item:hover {
    background-color: var(--gray-bg);
    color: var(--navy);
}

/* ============================================
   TABS - Sub-Navigation
   ============================================ */

.tab-item {
    cursor: pointer;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
    color: var(--slate-light);
    font-weight: 500;
}

.tab-item.active {
    border-bottom-color: var(--red);
    color: var(--red-dark);
}

.tab-item:hover {
    color: var(--navy);
}

/* ============================================
   HEADERS & SECTIONS
   ============================================ */

.section-label {
    color: var(--red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
}

.section-divider {
    height: 4px;
    background-color: var(--red);
    width: 60px;
    margin: 0 auto 2rem;
}

/* ============================================
   FORMS - Professional Input Styling
   ============================================ */

.form-input {
    border: 2px solid #e2e8f0;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
    font-family: 'IBM Plex Mono', monospace;
}

.form-input:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-label {
    color: var(--slate);
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

/* ============================================
   BADGES & STATUS INDICATORS
   ============================================ */

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-success {
    background-color: #d1fae5;
    color: var(--success);
}

.badge-warning {
    background-color: #fef3c7;
    color: var(--warning);
}

.badge-error {
    background-color: #fee2e2;
    color: var(--error);
}

.badge-info {
    background-color: #dbeafe;
    color: var(--info);
}

.badge-primary {
    background-color: #fef2f2;
    color: var(--red-dark);
}

.badge-secondary {
    background-color: #eff6ff;
    color: var(--navy);
}

/* ============================================
   TOOLTIPS & OVERLAYS
   ============================================ */

.trial-disabled {
    position: relative;
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.trial-disabled::after {
    content: 'Upgrade to unlock';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--navy-darker);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    white-space: nowrap;
    display: none;
    z-index: 10;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.trial-disabled:hover::after {
    display: block;
}

/* ============================================
   STATS & METRICS
   ============================================ */

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}

.stat-label {
    color: var(--slate-light);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   LOADING STATES
   ============================================ */

.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 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; }
}

/* ============================================
   ALERTS & NOTIFICATIONS
   ============================================ */

.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d1fae5;
    border-color: var(--success);
    color: #065f46;
}

.alert-warning {
    background-color: #fef3c7;
    border-color: var(--warning);
    color: #78350f;
}

.alert-error {
    background-color: #fee2e2;
    border-color: var(--error);
    color: #7f1d1d;
}

.alert-info {
    background-color: #dbeafe;
    border-color: var(--info);
    color: #075985;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
    
    .btn-primary, .btn-secondary, .btn-outline {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-navy { color: var(--navy); }
.text-red { color: var(--red); }
.text-slate { color: var(--slate); }

.bg-navy { background-color: var(--navy); }
.bg-red { background-color: var(--red); }
.bg-gray-light { background-color: var(--gray-bg); }

.border-red { border-color: var(--red); }
.border-navy { border-color: var(--navy); }

/* ============================================
   PROFESSIONAL HOVER STATES
   ============================================ */

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

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
