/* 1. IMPORT FONTÓW */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    /* --- PALETA KOLORÓW (POPRAWIONA CZYTELNOŚĆ) --- */
    
    /* Tła - hierarchia szarości zamiast samej czerni */
    --bg-sidebar: #1d1d1d;    /* Bardzo ciemny sidebar */
    --bg-body: #1d1d1d;       /* Ciemne tło główne */
    --bg-card: #1e1e1e;       /* Jaśniejsze karty - żeby się odcinały */
    --bg-input: #2c2c2c;      /* Wyraźne pola formularzy */
    
    /* Teksty - muszą być JASNE na ciemnym tle */
    --text-main: #ffffff;     /* Główny tekst - czysta biel */
    --text-muted: #ffffff;    /* Teksty poboczne - jasnoszary (a nie ciemny!) */
    --text-placeholder: #ffffff; /* Placeholdery */
    
    /* Akcent */f
    --primary: #D0F500;       /* Limonka */
    --primary-hover: #b2d965;
    --primary-text: #000000;  /* Czarny tekst na przycisku */
    
    /* Ramki */
    --border: #2D2C2B;        /* Jaśniejsza ramka, żeby była widoczna */
    
    /* Statusy */
    --status-dev: #fbbf24;
    --status-live: #ccf381;
    
    /* Fonty */
    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius: 0px; 
}

/* RESET */
.crea-dashboard-container * { box-sizing: border-box; }

/* --- GŁÓWNY KONTENER --- */
.crea-dashboard-container {
    display: flex;
    min-height: 800px;
    background: var(--bg-body);
    font-family: var(--font-body);
    color: #7b7a7a;
    border: 1px solid var(--border);
    margin: 40px 0;
}

/* --- SIDEBAR (LEWA) --- */
.crea-sidebar {
    width:300px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 40px 25px;
    flex-shrink: 0;
}

.crea-user-profile {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.crea-avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
    background: #333;
    margin-bottom: 15px;
    border: 2px solid var(--primary);
    padding: 2px;
}

.crea-user-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.2em;
    display: block;
    color: #fff; /* Czysta biel */
    margin-bottom: 5px;
    line-height: 1.2;
}

.crea-user-role {
    font-size: 0.8em;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* MENU NAWIGACJA */
.crea-nav { display: flex; flex-direction: column; gap: 2px; }
.crea-nav a {
    display: block;
    font-family: var(--font-head);
    font-weight: 500;
    padding: 12px 15px;
    color: #fff !important;
    text-decoration: none;
    transition: 0.2s;
    font-size: 1.05em;
    border-left: 3px solid transparent;
}

.crea-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.crea-nav a.active {
    color: #fff; /* Aktywny link biały */
    background: rgba(204, 243, 129, 0.1); /* Tło z nutą limonki */
    border-left-color: var(--primary);
}

/* --- TREŚĆ (PRAWA) --- */
.crea-content {
    flex: 1;
    padding: 50px;
    background: var(--bg-body);
}

.crea-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
color: #fff; /* Nagłówek musi być biały */

    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.crea-header h2 {
    font-family: var(--font-head);
    margin: 0;
    font-size: 2.5em;
    font-weight: 700;
    color: #fff !important; /* Nagłówek musi być biały */
    line-height: 1.1;
    letter-spacing: -1px;
}

/* KARTY */
.crea-card {
    background: var(--bg-card); /* Wyraźnie inne tło niż body */
    border: 1px solid var(--border);
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
}

.crea-card h3 {
    font-family: var(--font-head);
    margin-top: 0;
    color: #fff;
    font-size: 1.4em;
    margin-bottom: 20px;
    font-weight: 600;
}

.crea-card p {
    color: var(--text-muted); /* Czytelny szary tekst */
    line-height: 1.6;
}

/* --- FORMULARZE (Zaktualizowany Grid) --- */
.form-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 25px; 
}
.form-full { grid-column: 1 / -1; }
.form-header { grid-column: 1 / -1; margin-top: 20px; margin-bottom: 10px; border-bottom: 1px solid var(--border); padding-bottom: 5px; color: var(--primary); font-family: var(--font-head); text-transform: uppercase; font-size: 0.9em; letter-spacing: 1px; }

label {
    font-family: var(--font-head);
    font-size: 0.8em;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea, select, input[type="file"] {
    font-family: var(--font-body);
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: #fff;
    font-size: 1em;
    transition: 0.3s;
    border-radius: var(--radius);
}
input:focus, textarea:focus { border-color: var(--primary); outline: none; background: #222; }
/* PRZYCISKI */
.crea-btn {
    font-family: var(--font-head);
    background: var(--primary);
    color: var(--primary-text);
    padding: 14px 30px;
    border: none;
    font-weight: 700;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
    text-decoration: none;
    border-radius: var(--radius);
}

.crea-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
}

/* TABELE (Poprawa kontrastu) */
table { width: 100%; border-collapse: collapse; font-family: var(--font-body); }
th { 
    text-align: left; 
    color: #888; 
    font-weight: 600; 
    padding: 15px; 
    border-bottom: 1px solid var(--border); 
    font-size: 0.85em; 
    text-transform: uppercase;
    font-family: var(--font-head);
}
td { padding: 15px; border-bottom: 1px solid #2a2a2a; color: #fff; } /* Biały tekst w tabeli */
tr:hover td { background: #252525; }

/* LISTA ZGŁOSZEŃ */
.ticket-list-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px; border-bottom: 1px solid #2a2a2a;
    transition: 0.2s;
    background: var(--bg-card);
}
.ticket-list-item strong { font-family: var(--font-head); font-size: 1.1em; color: #fff; }
.ticket-list-item:hover { background: #252525; }

/* BADGE */
.crea-badge {
    font-family: var(--font-head);
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 10px;
    font-weight: 700;
    background: #333;
    color: #fff;
    border: 1px solid #444;
}

/* MINIATURA STRONY */
.website-preview {
    border: 1px solid var(--border);
    background: #000;
    margin-top: 15px;
}
.website-overlay {
    background: rgba(20,20,20,0.95); 
    color: #fff; 
    padding: 15px;
    border-top: 1px solid var(--border);
    display: flex; 
    justify-content: space-between;
    align-items: center;
}

/* CHAT */
.chat-container {
    background: #000;
    border: 1px solid var(--border);
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 20px;
}
.msg-client { background: var(--primary); color: #000; margin-left: auto; border-radius: 0; }
.msg-admin { background: #333; color: #fff; margin-right: auto; border-radius: 0; }

/* PAKIETY */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px;
    text-align: center;
}
.pricing-card.active {
    border: 2px solid var(--primary);
    background: #151515;
}
.pricing-card h3 { color: #fff; }
.pricing-price { color: var(--primary); font-family: var(--font-head); font-weight: 700; font-size: 2.5em; }
.pricing-features { color: #ccc; text-align: left; }
.pricing-features li { border-bottom: 1px solid #333; padding: 10px 0; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .crea-dashboard-container { flex-direction: column; border: none; margin: 0; }
    .crea-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
    .crea-content { padding: 20px; }
    .crea-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .form-grid { grid-template-columns: 1fr; }
}