/* 
 * DASHBOARD STYLES - Star Trek Bridge Theme
 * Główny pulpits mostka z wyświetlaczami systemowymi
 */

/* ========== GLOBALNE ZMIENNE - FEDERATION COLORS ========== */
:root {
    /* Flota Gwiezdna */
    --starfleet-blue: #00b8ff;
    --starfleet-blue-dark: #0066cc;
    --starfleet-blue-light: #66e0ff;
    --starfleet-gold: #ffd700;
    --starfleet-silver: #c0c0c0;
    --starfleet-red: #ff3366;
    --starfleet-green: #00ff9d;
    --starfleet-purple: #9d4edd;
    --starfleet-black: #0a0a1a;
    --starfleet-gray: #1a1a2e;
    --starfleet-white: #f0f8ff;
    
    /* Efekty */
    --neon-glow: 0 0 20px var(--starfleet-blue),
                 0 0 40px var(--starfleet-blue),
                 0 0 60px var(--starfleet-blue-light);
    
    --gold-glow: 0 0 15px var(--starfleet-gold),
                 0 0 30px rgba(255, 215, 0, 0.5);
    
    --red-alert: 0 0 20px var(--starfleet-red),
                 0 0 40px var(--starfleet-red),
                 0 0 60px #ff3366;
    
    /* Animacje */
    --pulse-animation: pulse 2s infinite;
    --scan-animation: scan 4s linear infinite;
    --float-animation: float 6s ease-in-out infinite;
    --warp-animation: warp 3s linear infinite;
    --hologram-animation: hologram 3s ease-in-out infinite;
    
    /* Gradienty */
    --gradient-space: linear-gradient(135deg, 
        var(--starfleet-black) 0%,
        var(--starfleet-gray) 25%,
        #1e3c72 50%,
        var(--starfleet-blue-dark) 75%,
        var(--starfleet-black) 100%);
    
    --gradient-holo: linear-gradient(90deg,
        transparent,
        rgba(0, 184, 255, 0.2) 20%,
        rgba(157, 78, 221, 0.3) 50%,
        rgba(0, 184, 255, 0.2) 80%,
        transparent);
    
    /* Cienie */
    --shadow-bridge: 0 10px 40px rgba(0, 0, 0, 0.7),
                     inset 0 0 30px rgba(0, 184, 255, 0.2);
    
    --shadow-holo: 0 0 40px rgba(0, 184, 255, 0.4),
                   inset 0 0 20px rgba(0, 184, 255, 0.1);
    
    /* Kształty */
    --border-radius: 20px;
    --border-radius-sm: 12px;
    
    /* Animacje */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== ANIMACJE MOSTKA ========== */
@keyframes bridgeLights {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes consolePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 184, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 184, 255, 0.6); }
}

@keyframes dataStream {
    0% { transform: translateY(-100%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

/* ========== RESET I PODSTAWOWE STYLE ========== */
* {
    box-sizing: border-box;
    font-smooth: antialiased;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Orbitron', 'Courier New', monospace, sans-serif;
    background: linear-gradient(135deg, 
        rgba(10, 10, 26, 0.98) 0%,
        rgba(26, 26, 46, 0.98) 50%,
        rgba(22, 33, 62, 0.98) 100%);
    color: var(--starfleet-white);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(0, 184, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(157, 78, 221, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 157, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
    animation: bridgeLights 20s ease infinite;
}

.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* ========== TYPOGRAPHY - CONSOLE FONTS ========== */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-weight: 800;
    color: var(--starfleet-white);
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px var(--starfleet-blue);
}

/* ========== BUTTONS - BRIDGE CONTROLS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: var(--border-radius-sm);
    border: none;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent);
    transition: left 0.7s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, 
        var(--starfleet-blue) 0%,
        var(--starfleet-blue-dark) 100%);
    color: white;
    border: 2px solid rgba(0, 184, 255, 0.5);
    box-shadow: 0 0 25px rgba(0, 184, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 40px rgba(0, 184, 255, 0.6);
    background: linear-gradient(135deg, 
        var(--starfleet-blue-light) 0%,
        var(--starfleet-blue) 100%);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--starfleet-blue);
    color: var(--starfleet-blue);
}

.btn-outline:hover {
    background: var(--starfleet-blue);
    color: white;
    box-shadow: 0 0 30px rgba(0, 184, 255, 0.5);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 13px;
}

/* ========== TOP SECTION - BRIDGE MAIN CONSOLE ========== */
.top-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 35px;
    padding-top: 30px;
}

/* ========== KALKULATOR - SCIENCE STATION ========== */
.calc-panel {
    background: rgba(26, 26, 46, 0.85);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-bridge);
    animation: slideInUp 0.4s ease-out;
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-left: 5px solid var(--starfleet-gold);
    position: relative;
    overflow: hidden;
    animation: hologram 4s ease-in-out infinite;
}

.calc-panel::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, 
        rgba(255, 215, 0, 0.15) 0%, 
        transparent 70%);
    pointer-events: none;
}

.calc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.calc-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--starfleet-white);
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.calc-title i {
    color: var(--starfleet-gold);
    font-size: 24px;
    text-shadow: 0 0 20px var(--starfleet-gold);
    animation: pulse 2s ease-in-out infinite;
}

.compact-toggle {
    background: rgba(192, 192, 192, 0.2);
    border: 2px solid rgba(0, 184, 255, 0.4);
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 13px;
    color: var(--starfleet-silver);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.compact-toggle:hover {
    background: rgba(0, 184, 255, 0.3);
    border-color: var(--starfleet-blue);
    color: var(--starfleet-blue-light);
    transform: translateY(-2px);
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.calc-item {
    display: flex;
    flex-direction: column;
}

.calc-label {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--starfleet-silver);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.calc-input-wrapper {
    position: relative;
    width: 100%;
}

.calc-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 30, 60, 0.8);
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: var(--border-radius-sm);
    font-size: 18px;
    color: var(--starfleet-white);
    font-weight: 700;
    transition: var(--transition);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    -moz-appearance: textfield;
    appearance: textfield;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input:focus {
    outline: none;
    border-color: var(--starfleet-gold);
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}

.calc-unit {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--starfleet-gold);
    font-size: 14px;
    font-weight: 700;
    pointer-events: none;
    background: rgba(26, 26, 46, 0.9);
    padding: 0 8px;
    border-radius: 4px;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
}

.calc-result {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.3) 0%,
        rgba(255, 140, 0, 0.3) 100%);
    border-radius: var(--border-radius-sm);
    padding: 25px;
    text-align: center;
    color: white;
    margin-top: 15px;
    animation: slideInUp 0.5s ease-out;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    border: 2px solid rgba(255, 215, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.calc-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent);
    animation: scan 3s linear infinite;
}

.calc-result-label {
    font-size: 14px;
    opacity: 0.95;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Orbitron', sans-serif;
}

.calc-result-value {
    font-size: 32px;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 3px;
}

.calc-tip {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    color: var(--starfleet-silver);
    border-left: 3px solid var(--starfleet-gold);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* Kompaktowy tryb kalkulatora */
.calc-compact .calc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.calc-compact .calc-input {
    padding: 14px 16px;
    font-size: 16px;
}

.calc-compact .calc-result {
    padding: 20px;
}

.calc-compact .calc-tip {
    display: none;
}

/* ========== FINANCIAL PANEL - TACTICAL DISPLAY ========== */
.financial-panel {
    background: rgba(26, 26, 46, 0.85);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-bridge);
    animation: slideInUp 0.5s ease-out;
    border: 2px solid rgba(0, 184, 255, 0.4);
    border-left: 5px solid var(--starfleet-blue);
    position: relative;
    overflow: hidden;
    animation: hologram 5s ease-in-out infinite;
}

.financial-panel::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, 
        rgba(0, 184, 255, 0.15) 0%, 
        transparent 70%);
    pointer-events: none;
}

.fin-title {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--starfleet-white);
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 184, 255, 0.3);
}

.fin-title i {
    color: var(--starfleet-blue);
    font-size: 24px;
    text-shadow: 0 0 20px var(--starfleet-blue);
}

.fin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.fin-item {
    background: rgba(0, 30, 60, 0.6);
    padding: 20px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    border: 2px solid transparent;
    animation: consolePulse 3s ease-in-out infinite;
}

.fin-item:hover {
    background: rgba(0, 184, 255, 0.2);
    border-color: var(--starfleet-blue);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 184, 255, 0.3);
    animation: none;
}

.fin-label {
    font-size: 12px;
    color: var(--starfleet-silver);
    margin-bottom: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Orbitron', sans-serif;
}

.fin-value {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 8px;
    color: var(--starfleet-white);
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(90deg, 
        var(--starfleet-blue-light) 0%,
        var(--starfleet-white) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fin-meta {
    font-size: 11px;
    color: var(--starfleet-silver);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* ========== STATS CARDS - BRIDGE STATUS DISPLAYS ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 25px;
    margin-bottom: 35px;
}

.stat-card {
    background: rgba(26, 26, 46, 0.85);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-bridge);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: hologram 4s ease-in-out infinite;
    border: 2px solid rgba(0, 184, 255, 0.3);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent,
        var(--starfleet-blue),
        transparent);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 50px rgba(0, 184, 255, 0.4),
        inset 0 0 40px rgba(0, 184, 255, 0.2);
    border-color: var(--starfleet-blue);
    animation: consolePulse 2s ease-in-out infinite;
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, 
        var(--starfleet-blue) 0%,
        var(--starfleet-purple) 100%);
    color: white;
    box-shadow: 0 0 25px rgba(0, 184, 255, 0.4);
    position: relative;
    animation: pulse 3s ease-in-out infinite;
}

.stat-icon::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid rgba(0, 184, 255, 0.3);
    border-radius: var(--border-radius-sm);
    animation: pulse 2s ease-in-out infinite reverse;
}

.stat-trend {
    font-size: 12px;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(192, 192, 192, 0.2);
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-trend.positive { 
    background: rgba(0, 255, 157, 0.2); 
    color: var(--starfleet-green);
    border: 1px solid rgba(0, 255, 157, 0.4);
}

.stat-trend.negative { 
    background: rgba(255, 51, 102, 0.2); 
    color: var(--starfleet-red);
    border: 1px solid rgba(255, 51, 102, 0.4);
    animation: glitch 1s ease-in-out infinite;
}

.stat-value {
    font-size: 42px;
    font-weight: 900;
    color: var(--starfleet-white);
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(90deg, 
        var(--starfleet-blue-light) 0%,
        var(--starfleet-white) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 184, 255, 0.4);
}

.stat-label {
    font-size: 14px;
    color: var(--starfleet-silver);
    margin-bottom: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Orbitron', sans-serif;
}

.stat-meta {
    font-size: 12px;
    color: var(--starfleet-silver);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    border-top: 1px solid rgba(0, 184, 255, 0.2);
    padding-top: 10px;
}

/* ========== TABLE - DATA STREAM DISPLAY ========== */
.dashboard-card {
    background: rgba(26, 26, 46, 0.85);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-bridge);
    margin-bottom: 30px;
    overflow: hidden;
    border: 2px solid rgba(0, 184, 255, 0.3);
    position: relative;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        rgba(0, 184, 255, 0.1),
        transparent);
    animation: dataStream 4s linear infinite;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 184, 255, 0.3);
    flex-wrap: wrap;
    gap: 15px;
}

.card-title {
    font-size: 20px;
    font-weight: 900;
    color: var(--starfleet-white);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 15px var(--starfleet-blue);
}

.card-title i {
    color: var(--starfleet-blue);
    font-size: 22px;
}

.sales-table {
    width: 100%;
    border-collapse: collapse;
}

.sales-table thead {
    background: linear-gradient(90deg, 
        rgba(0, 184, 255, 0.3) 0%,
        rgba(157, 78, 221, 0.3) 100%);
}

.sales-table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 900;
    font-size: 13px;
    color: var(--starfleet-white);
    border-bottom: 3px solid rgba(0, 184, 255, 0.4);
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sales-table td {
    padding: 18px 15px;
    border-bottom: 1px solid rgba(0, 184, 255, 0.2);
    font-size: 14px;
    color: var(--starfleet-white);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.sales-table tbody tr:hover {
    background: rgba(0, 184, 255, 0.15);
    transform: translateX(5px);
}

.profit-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid;
}

.profit-high { 
    background: rgba(0, 255, 157, 0.2); 
    color: var(--starfleet-green);
    border-color: rgba(0, 255, 157, 0.4);
}

.profit-medium { 
    background: rgba(255, 215, 0, 0.2); 
    color: var(--starfleet-gold);
    border-color: rgba(255, 215, 0, 0.4);
}

.profit-low { 
    background: rgba(255, 51, 102, 0.2); 
    color: var(--starfleet-red);
    border-color: rgba(255, 51, 102, 0.4);
    animation: glitch 1s ease-in-out infinite;
}

.badge-live {
    background: linear-gradient(135deg, 
        var(--starfleet-red) 0%,
        #cc0033 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 900;
    margin-left: 12px;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid rgba(255, 51, 102, 0.6);
    animation: pulse 0.8s ease-in-out infinite;
}

/* ========== LOADING SCREEN - SYSTEM INIT ========== */
.auth-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(10, 10, 26, 0.98) 0%,
        rgba(26, 26, 46, 0.98) 100%);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-spinner {
    width: 100px;
    height: 100px;
    border: 4px solid rgba(0, 184, 255, 0.2);
    border-top: 4px solid var(--starfleet-blue);
    border-right: 4px solid var(--starfleet-purple);
    border-bottom: 4px solid var(--starfleet-green);
    border-left: 4px solid var(--starfleet-gold);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    box-shadow: 0 0 50px rgba(0, 184, 255, 0.4);
    position: relative;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border: 3px solid rgba(157, 78, 221, 0.2);
    border-radius: 50%;
    animation: spin 3s linear infinite reverse;
}

.loading-text {
    margin-top: 40px;
    color: var(--starfleet-blue-light);
    font-size: 22px;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 20px var(--starfleet-blue);
    animation: pulse 2s ease-in-out infinite;
}

/* ========== RESPONSIVE - BRIDGE ADAPTATION ========== */

/* Tablet */
@media (min-width: 768px) {
    .top-section {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .calc-panel {
        flex: 1;
    }
    
    .financial-panel {
        flex: 1;
    }
    
    .calc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .container {
        max-width: 1400px;
        padding: 30px 40px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .calc-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .fin-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large Desktop - BRIDGE VIEW */
@media (min-width: 1600px) {
    .container {
        max-width: 1800px;
        padding: 40px 60px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .top-section {
        gap: 40px;
    }
    
    .calc-panel,
    .financial-panel {
        padding: 40px;
    }
}

/* ========== UTILITY CLASSES ========== */
.text-muted {
    color: var(--starfleet-silver);
}

.text-success {
    color: var(--starfleet-green);
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
}

.text-warning {
    color: var(--starfleet-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.text-danger {
    color: var(--starfleet-red);
    text-shadow: 0 0 10px rgba(255, 51, 102, 0.3);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* ========== SPECIAL CONSOLE EFFECTS ========== */
.console-grid {
    background-image: 
        linear-gradient(rgba(0, 184, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 184, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.data-stream {
    position: relative;
    overflow: hidden;
}

.data-stream::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent,
        rgba(0, 184, 255, 0.1),
        transparent);
    animation: dataStream 3s linear infinite;
}

/* Bridge alert system */
.alert-bridge {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent,
        var(--starfleet-red),
        transparent);
    animation: scan 2s linear infinite;
    z-index: 10001;
    pointer-events: none;
}

/* Transporter effect */
.transporter {
    position: relative;
    overflow: hidden;
}

.transporter::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(0, 184, 255, 0.4),
        transparent,
        rgba(0, 184, 255, 0.4));
    animation: beam 2s ease-in-out infinite;
    pointer-events: none;
}

/* W innych plikach CSS dodaj: */
.container, 
.page-container, 
.orders-container,
.allegro-container {
    padding-top: 90px !important;
}
/* dashboard-styles.css - lub dodaj to do istniejącego pliku */

/* Podstawowe style formularzy */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    color: var(--text-color);
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

/* Style dla wszystkich modali */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--bg-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}