/* ZeroStack Portal - Main Stylesheet */
/* Объединенный файл стилей для оптимизации производительности */

/* Font optimization - font-display: swap для всех внешних шрифтов */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-display: swap;
}

/* Preload Font Awesome fonts to reduce render-blocking */
@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-display: swap;
}

@font-face {
    font-family: 'Font Awesome 6 Pro';
    font-display: swap;
}

/* ============================================
   CSS Variables
   ============================================ */
:root {
    /* Base colors */
    --color-bg-primary: #0f172a;
    --color-bg-secondary: #1e293b;
    --color-bg-tertiary: #334155;
    
    /* Text colors - improved contrast for WCAG AA compliance */
    --color-text-primary: #f8fafc;
    --color-text-secondary: #cbd5e1;
    --color-text-tertiary: #94a3b8;
    --color-text-muted: #94a3b8; /* slate-400 instead of slate-500 for better contrast */
    
    /* Accent colors */
    --color-accent: #38bdf8;
    --color-accent-hover: #0284c7;
    --color-accent-dark: #0369a1;
    
    /* Status colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;
    
    /* Border colors */
    --color-border: #334155;
    --color-border-light: #475569;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 200ms ease-in-out;
    --transition-slow: 300ms ease-in-out;
}

/* ============================================
   Base Styles
   ============================================ */
body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-primary);
}

/* Links */
a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-base);
}

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

/* Focus states */
*:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* ============================================
   Component Styles
   ============================================ */
/* Sidebar */
.sidebar {
    background-color: var(--color-bg-secondary);
}

/* Cards */
.card {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
}

/* Accent text */
.accent {
    color: var(--color-accent);
}

/* Buttons */
.btn-primary {
    /* Improved contrast: using darker blue for better WCAG AA compliance (4.5:1 ratio) */
    background-color: #0369a1; /* sky-700 instead of sky-600 for better contrast */
    color: #ffffff;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background-color var(--transition-base);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.btn-primary:hover {
    background-color: #075985; /* sky-800 for hover */
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Notification badge */
.notification-badge {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background-color: var(--color-error);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: var(--radius-full);
    min-width: 20px;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--spacing-xs);
}

.notification-badge.text-xs {
    font-size: 0.625rem;
}

/* Progress bar */
.progress-bar {
    height: 0.5rem;
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
    background-color: var(--color-success);
}

.progress-bar.warning {
    background-color: var(--color-warning);
}

.progress-bar.error {
    background-color: var(--color-error);
}

/* Note: status-badge, message-box, and spinner classes removed as they are not used */

/* ============================================
   Utility Classes
   ============================================ */
/* Note: Text utilities removed as they are not used - Tailwind provides these */
