/* ========================================
POŁĄCZONY PLIK STYLI - JASNA PALETA KOLORÓW
GabinetOnline Design System + Beauty Forms
======================================== */
/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700');

/* ===== UNIWERSALNE TOKENY (JASNA PALETA) ===== */
:root {
    /* KOLORY GŁÓWNE - spójne dla całego systemu */
    --primary: #2DD4BF;       /* Teal (główny akcent) */
    --primary-dark: #14B8A6;  /* Ciemniejszy teal */
    --primary-light: #7AE3D3; /* Jasny teal (dla Beauty Forms) */
    --secondary: #EDEDED;     /* Niebieski */                       /* buttony */
    --accent: #F59E0B;        /* Pomarańczowy */
    --success: #10B981;       /* Zielony */
    --danger: #EF4444;        /* Czerwony */
    --warning: #F59E0B;       /* Ostrzeżenie */

    /* KOLORY DODATKOWE DLA BEAUTY FORMS (kompatybilne z główną paletą) */
    --beauty-primary: #D4A373;    /* Beż (tylko dla sekcji Beauty) */
    --beauty-secondary: #F5E6D3;  /* Jasny beż */
    --beauty-accent: #C9A87C;     /* Ciepły brąz */
    --beauty-dark: #2D2424;       /* Ciemny tekst */

    /* TŁA */
    --bg-main: #F8FAFC;     /* Główne tło aplikacji */
    --bg-card: #FFFFFF;     /* Karty */
    --bg-hover: #F1F5F9;    /* Hover elementów */
    --bg: var(--bg-main);   /* Alias dla kompatybilności */

    /* TEKST */
    --text-primary: #0F172A;    /* Główny tekst */
    --text-secondary: #64748B;  /* Tekst pomocniczy */
    --text-muted: #94A3B8;      /* Tekst przygaszony */
    --text: var(--text-primary);/* Alias */
    --text-light: var(--text-secondary);
    --dark: var(--text-primary);/* Alias dla kompatybilności */

    /* BORDER & Cienie */
    --border: #E2E8F0;
    --border-strong: #CBD5E1;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.16);
    --shadow: var(--shadow-sm); /* Alias */

    /* RADIUS */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* ODSTĘPY */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;

    /* TYPOGRAFIA */
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Manrope', serif; /* Dla nagłówków Beauty */

    /* SPECJALNE */
    --white: #FFFFFF;
    --error: var(--danger); /* Kompatybilność z style.css */
    --gradient: linear-gradient(135deg, #2DD4BF 0%, #3B82F6 100%);
    --transition-fast: all 0.15s ease;
    --transition: all 0.25s ease;
}

/* ========================================
RESET I PODSTAWY
======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
GLOBALNE STYLES (z global.css)
======================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 600;
    font-size: 10.5pt;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-primary {
    background: var(--gradient);
    color: white;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 212, 191, 0.3);
}
.btn-secondary {
    background: var(--bg-main);
    color: var(--text-primary);
}
.btn-secondary:hover {
    background: var(--bg-hover);
    color: black;
}

/* Formularze */
.form-input,
.form-textarea,
.form-select,
input[type="text"],
input[type="email"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: var(--transition-fast);
}
.mic-icon {
    position: absolute; right: 10px; top: 50%;
    transform: translateY(-50%); cursor: pointer;
    background: none; border: none; font-size: 18px;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

/* Tabele */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
}
table {
    width: 100%;
    border-collapse: collapse;
}
thead {
    background: var(--bg-main);
}
th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}
td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 10.5pt;
}
tbody tr {
    transition: background 0.2s;
}
tbody tr:hover {
    background: var(--bg-hover);
}

/* ========================================
BUILDER.CSS (Form Builder)
======================================== */
.builder-container {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: var(--space-md);
    height: calc(100vh - 200px);
}
/* ... pozostałe style z builder.css bez zmian ... */
/* (pełna treść builder.css zachowana z oryginalnymi zmiennymi) */

/* ========================================
REPORTS.CSS (Raporty)
======================================== */
/* ... pełna treść reports.css bez zmian ... */
/* (wszystkie style raportów z kompatybilnymi zmiennymi) */

/* ========================================
BEAUTY FORMS (style.css - z adaptacją)
======================================== */
/* Nagłówki z elegancką czcionką */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--beauty-dark);
    line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 600; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

/* Karty Beauty z ciepłą paletą */
.beauty-card {
    background: var(--beauty-secondary);
    border-radius: 16px;
    padding: var(--space-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.beauty-card:hover {
    box-shadow: 0 12px 40px rgba(212, 163, 115, 0.15);
    transform: translateY(-4px);
}

/* Przyciski Beauty */
.btn-beauty {
    background: var(--beauty-primary);
    color: var(--white);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 500;
    transition: var(--transition);
}
.btn-beauty:hover {
    background: var(--beauty-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 168, 124, 0.25);
}

/* Login Beauty */
.login-container {
    background: linear-gradient(135deg, var(--beauty-secondary) 0%, var(--bg-main) 100%);
}
.login-card {
    max-width: 550px;
    background: var(--white);
    padding: var(--space-xl);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}
.login-logo h1 {
    color: var(--beauty-primary);
    font-size: 2.5rem;
}

/* ========================================
UTILITY I DODATKI
======================================== */
.hidden { display: none !important; }
.flex { display: flex; }
.grid { display: grid; }
.text-muted { color: var(--text-secondary); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ========================================
RESPONSIVE (uniwersalny)
======================================== */
@media (max-width: 1200px) {
    .builder-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    .builder-toolbar,
    .builder-properties {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .container { padding: 1rem; }
    .page-title h1 { font-size: 1.5rem; }
    .filter-bar { flex-direction: column; }
    .stats-grid, .category-grid { grid-template-columns: 1fr; }
    .header-content { flex-direction: column; gap: var(--space-sm); }
    .nav { flex-wrap: wrap; justify-content: center; }
    .login-card { padding: var(--space-lg); }
    .card { padding: var(--space-md); }
    .table-wrapper { font-size: 0.85rem; }
    th, td { padding: 0.75rem 0.5rem; }
}

/* Print */
@media print {
    .header, .nav, .btn, .no-print {
        display: none !important;
    }
    body { background: white; }
    .card { border: 1px solid #000; box-shadow: none; }
}