/* ===== DESIGN TOKENS (Apple Style) ===== */
:root {
    --bg-system: #f2f2f7; /* Klasyczne szare tło aplikacji iOS */
    --bg-card: #ffffff;
    --text-main: #000000;
    --text-secondary: #8a8a8e;
    --accent-blue: #007aff;
    --accent-blue-hover: #0056b3;
    --border-color: rgba(60, 60, 67, 0.1);
    --danger: #ff3b30;
    --success: #34c759;
    --radius-card: 20px;
    --radius-input: 12px;
    --radius-btn: 14px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
    --transition: 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    
    /* Obsługa wycięć na nowszych telefonach (notch/dynamic island) */
    --safe-bottom: env(safe-area-inset-bottom, 20px);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    background: var(--bg-system);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent; /* Usuwa niebieskie mrugnięcie na iOS */
}

/* ===== LAYOUT ===== */
#app {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}

.bottom-spacer {
    height: calc(80px + var(--safe-bottom)); /* Miejsce na Tab Bar */
}

/* ===== HEADER ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 8px 16px;
    position: sticky;
    top: 0;
    background: var(--bg-system);
    z-index: 90;
}
header h1 { 
    font-size: 1.5rem; 
    font-weight: 700; 
    letter-spacing: -0.5px; 
}
#user-info { 
    font-size: 0.85rem; 
    color: var(--text-secondary); 
    font-weight: 500;
}
.header-avatar {
    width: 40px;
    height: 40px;
    background: #e5e5ea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

/* ===== TAB BAR (iOS Style Bottom Nav) ===== */
/* Pływający Tab Bar */
.tab-bar {
    position: fixed;
    bottom: 25px; /* Lewituje nad dolną krawędzią */
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.7); /* Efekt szkła */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 40px; /* Bardzo mocne zaokrąglenie */
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Pływające tło zaznaczenia (ten ciemniejszy prostokąt) */
#tab-highlight {
    position: absolute;
    height: calc(100% - 12px); /* Padding paska */
    background: rgba(0, 0, 0, 0.08); /* Delikatnie ciemniejszy */
    border-radius: 35px;
    z-index: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Płynny ruch Apple */
    pointer-events: none;
}

/* Przyciski */
.tab-btn {
    position: relative;
    background: none;
    border: none;
    display: flex;
    flex-direction: row; /* Ikona obok tekstu lub pod spodem - zależy od gustu */
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 35px;
    color: #444;
    cursor: pointer;
    z-index: 1; /* Muszą być nad highlightem */
    transition: color 0.3s ease;
    white-space: nowrap;
}

.tab-btn.active {
    color: var(--accent-blue);
}

.tab-icon {
    width: 22px;
    height: 22px;
}

.tab-label {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Ukrywamy label na bardzo małych ekranach, zostawiamy same ikony */
@media (max-width: 400px) {
    .tab-label { display: none; }
    .tab-btn { padding: 12px; }
    .tab-bar { min-width: 150px; }
}

/* ===== BOXES / CARDS ===== */
.box {
    background-color: var(--bg-card);
    width: 100%;
    margin-bottom: 20px;
    padding: 24px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
}
.box.transparent-box {
    background: transparent;
    box-shadow: none;
    padding: 0 8px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
h2 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 16px;
}
.section-header h2 { margin-bottom: 0; }

/* ===== FORMS & INPUTS ===== */
label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 16px 0 6px 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
input[type="text"],
input[type="time"],
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid transparent;
    background-color: #f2f2f7; /* Szare tło w stylu iOS */
    border-radius: var(--radius-input);
    font-size: 1rem;
    font-family: var(--font);
    color: var(--text-main);
    transition: all var(--transition);
    appearance: none; /* Usuwa natywny styl przeglądarki */
}
select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%238a8a8e%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 16px top 50%;
    background-size: 12px auto;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-blue);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}
textarea { resize: vertical; min-height: 100px; }

.time-row { display: flex; gap: 16px; }
.time-row > div { flex: 1; }

.file-input-wrapper input[type="file"] {
    background: #f2f2f7;
    border: 2px dashed #d1d1d6;
    border-radius: var(--radius-input);
    padding: 20px;
    text-align: center;
    cursor: pointer;
}

/* ===== BUTTONS ===== */
.submit_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 24px;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: transform var(--transition), opacity var(--transition);
}
.submit_btn:active { transform: scale(0.98); }
.submit_btn:disabled { opacity: 0.5; cursor: not-allowed; }

.submit_btn.primary {
    background-color: var(--accent-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}
.submit_btn.secondary {
    background-color: #e5e5ea;
    color: var(--accent-blue);
}

.icon-btn {
    background: #e5e5ea;
    border: none;
    color: var(--accent-blue);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s;
}
.icon-btn:active { opacity: 0.7; }

/* ===== TOAST (Zoptymalizowany pod mobile) ===== */
#toast-container {
    position: fixed;
    /* Przeniesiony wyżej, by Tab Bar go nie zasłaniał */
    top: 20px; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    width: 90%;
    max-width: 400px;
}
.toast {
    padding: 16px 20px;
    border-radius: 100px; /* Pigułka */
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    text-align: center;
    animation: toast-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), toast-out 0.4s ease 3s forwards;
}
.toast.error { background: rgba(255, 59, 48, 0.9); }
.toast.success { background: rgba(52, 199, 89, 0.9); }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(-30px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toast-out {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: translateY(-20px) scale(0.9); }
}

/* ===== TABLES ===== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -24px; /* Rozciąga tabelę do krawędzi boxa na mobile */
    padding: 0 24px;
}
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
}
.data-table th, .data-table td {
    padding: 14px 8px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}
.data-table th {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.data-table tbody tr:last-child td { border-bottom: none; }

.data-table .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.data-table .actions button {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: #f2f2f7;
    color: var(--accent-blue);
    cursor: pointer;
}

/* ===== LOGS LIST ===== */
.logs-list { display: flex; flex-direction: column; gap: 12px; }
.log-entry {
    background: var(--bg-card);
    padding: 16px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
}
.log-entry .log-meta {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.log-entry .log-task { font-size: 1rem; color: var(--text-main); }
.empty-msg { text-align: center; font-size: 0.9rem; color: var(--text-secondary); padding: 20px; }

/* ===== FILTERS ===== */
.filter-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.filter-group { flex: 1; min-width: 140px; }
.filter-row button { margin-top: 10px; width: auto; padding: 14px 24px; }

/* ===== MEDIA GRID ===== */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 20px;
}
.media-item {
    position: relative;
    border-radius: var(--radius-input);
    overflow: hidden;
    aspect-ratio: 1;
    background: #e5e5ea;
}
.media-item img, .media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.media-item .download-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(255,255,255,0.9);
    color: var(--text-main);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 100px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
}

/* ===== PROGRESS BAR ===== */
#upload-progress-wrap { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
#upload-progress-bar {
    flex: 1;
    height: 6px;
    background: #e5e5ea;
    border-radius: 3px;
    overflow: hidden;
}
#upload-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-blue);
    border-radius: 3px;
    transition: width 0.3s ease;
}
#upload-progress-text { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); }

/* ===== MODAL (Confirm / Create) ===== */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}
.confirm-box {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 30px 24px;
    max-width: 340px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    text-align: center;
    transform: scale(0.95);
    animation: scaleUp 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.confirm-box h2 { font-size: 1.25rem; margin-bottom: 20px; }
.confirm-box p { margin-bottom: 24px; font-size: 1rem; color: var(--text-secondary); }
.confirm-actions { display: flex; gap: 12px; margin-top: 10px; }
.confirm-actions button { flex: 1; margin: 0; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleUp { to { transform: scale(1); } }

/* ===== LOADER ===== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-system);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    transition: opacity 0.4s;
}
.loading-overlay.hidden { opacity: 0; pointer-events: none; }
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0,122,255,0.2);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 600px) {
    .box { padding: 20px 16px; border-radius: 16px; }
    .filter-row { flex-direction: column; align-items: stretch; }
    .filter-row button { width: 100%; }
}
.media-grid-mini {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin: 15px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 12px;
    min-height: 50px;
}
.media-grid-mini img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
}
.file-input-label {
    display: block;
    padding: 15px;
    border: 2px dashed var(--border);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    background: #fafafa;
}
.custom-file-upload {
    position: relative; /* Ważne dla pozycjonowania inputu */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    width: 100%;
    min-height: 120px;
    padding: 20px;
    
    background: #f2f2f7; /* Jasny szary iOS */
    border: 2px dashed #c7c7cc;
    border-radius: 16px;
    cursor: pointer;
    overflow: hidden; /* Żeby input nie wystawał poza zaokrąglenia */
    transition: background 0.2s ease;
}

/* Styl po najechaniu lub kliknięciu (dla lepszego feedbacku) */
.custom-file-upload:active {
    background: #e5e5ea;
}

/* Ukrywamy domyślny wygląd, ale rozciągamy go na CAŁOŚĆ */
.custom-file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Całkowicie przezroczysty */
    cursor: pointer;
    display: block;
}

/* Styl treści w środku */
.upload-content {
    text-align: center;
    pointer-events: none; /* Ignoruj kliknięcia, by nie blokowały inputu pod spodem */
}

.upload-content span {
    display: block;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 4px;
}

.upload-content p {
    font-size: 0.8rem;
    color: #8e8e93;
}
/* --- Klasa dla zwijanych boksów --- */
.collapsible {
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Nagłówek - klikalna część */
.collapsible-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px; /* Dopasuj do paddingu boksów */
    cursor: pointer;
    user-select: none;
}

/* Usuwamy standardowe marginesy h2 wewnątrz triggera */
.collapsible-trigger h2 {
    margin: 0 !important;
    font-size: 1.1rem;
}

/* Ikona strzałki */
.arrow-icon {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--accent-blue);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotate(0deg); /* Domyślnie patrzy w bok/dół */
}

/* Treść do zwinięcia */
.collapsible-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    padding: 0 25px; /* Boczne paddingi */
}

/* Stan otwarty */
.collapsible.is-open {
    border: 1px solid rgba(0, 122, 255, 0.2); /* Delikatna ramka przy otwartym */
}

.collapsible.is-open .collapsible-body {
    max-height: 2000px; /* Duża wartość, by zmieścić formularze */
    opacity: 1;
    padding-bottom: 25px;
}

.collapsible.is-open .arrow-icon {
    transform: rotate(-90deg); /* Obrót strzałki */
}
.fd {
	display: flex;
	align-items: center;
	gap: 8px;
}
/* Styl paska ładowania CSV (cienki, dyskretny) */
#csv-load-progress-wrap .task-progress-bar {
    height: 3px;
    background: #e5e5ea;
    border-radius: 2px;
}

/* ===== NOWE STYLE ===== */

/* Sugestie wyszukiwania */
.search-suggestions {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-input);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 95;
    max-height: 200px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover, .suggestion-item.active { background-color: rgba(0,0,0,0.05); }

/* Archiwum Viewer */
#archive-viewer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e5e5ea;
}

.archive-summary-box {
    background: #f2f2f7;
    border-radius: 16px;
    padding: 20px;
}

.date-range-bar {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.pie-chart-wrap {
    display: flex; align-items: center; gap: 15px;
}

.apple-donut {
    width: 100px; height: 100px; border-radius: 50%;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 12px white; /* Efekt donut */
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1rem; color: var(--accent-blue);
}

.donut-legend { list-style:none; padding:0; font-size: 0.8rem; flex:1;}
.donut-legend-item { display:flex; justify-content:space-between; margin-bottom:3px; }
.donut-color-dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:5px;}

.task-breakdown { margin-top: 20px; font-size: 0.8rem;}
.task-breakdown-item { margin-bottom: 8px; }
.task-row { display:flex; justify-content:space-between; margin-bottom: 2px; }
.task-progress-bar { height:4px; background:#e5e5ea; border-radius:2px; }
.task-progress-fill { height:100%; width:0%; background:var(--accent-blue); border-radius:2px; }

@media (max-width: 600px) {
    .pie-chart-wrap { flex-direction: column; text-align: center;}
    .apple-donut { width: 80px; height: 80px;}
}
:root {
    /* Pastelowa paleta Apple-style */
    --p-1: #FFB3BA; --p-2: #BAE1FF; --p-3: #BAFFC9; 
    --p-4: #FFFFBA; --p-5: #FFDFBA; --p-6: #E0BBE4;
    --p-7: #D4F0F0; --p-8: #FFC8DD; --p-9: #BDE0FE; --p-10: #CDB4DB;
}

/* Wykres aktywności dziennej */
.activity-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 120px;
    margin: 20px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    overflow-x: auto; /* Przewijanie na telefonie przy długich projektach */
}

.activity-bar-wrap {
    flex: 1;
    min-width: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.activity-bar {
    width: 100%;
    background: var(--p-2);
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
    cursor: pointer;
}

.activity-bar:hover { filter: brightness(0.9); }

.bar-date {
    font-size: 0.6rem;
    color: #8e8e93;
    transform: rotate(-45deg);
    margin-top: 15px;
    white-space: nowrap;
}

/* Galerie */
.archive-gallery {
    margin-top: 20px;
}
.archive-gallery h4 {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    background: #eee;
}
/* --- Wykres aktywności (Scrollowany) --- */
.activity-chart-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Płynne przewijanie na iOS */
    padding-bottom: 20px; /* Miejsce na pochylone daty */
}

.activity-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 140px;
    min-width: max-content; /* Wymusza scrollowanie, jeśli słupków jest za dużo */
    border-bottom: 2px solid #e5e5ea;
    padding-top: 20px;
}

.activity-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 40px; /* Stała szerokość słupka z marginesem */
    height: 100%;
}

.activity-bar {
    width: 30px;
    background-color: var(--accent-blue);
    border-radius: 6px 6px 0 0;
    min-height: 4px; /* Żeby zawsze było coś widać */
    transition: filter 0.2s;
}

.activity-bar:hover { filter: brightness(0.8); }

.activity-val {
    font-size: 0.65rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-secondary);
}

.activity-label {
    font-size: 0.65rem;
    color: #8e8e93;
    margin-top: 8px;
    transform: rotate(-45deg);
    transform-origin: top left;
    margin-left: 15px;
    white-space: nowrap;
}

/* Tabela w archiwum */
.archive-logs-table {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}
/* Stan po wybraniu plików */
.custom-file-upload.has-files {
    border-color: var(--p-3); /* Pastelowa zieleń */
    background-color: rgba(186, 255, 201, 0.1);
}

.custom-file-upload.has-files .upload-content span {
    color: #2b7a3d; /* Ciemniejsza zieleń dla kontrastu */
    font-weight: 700;
}

/* Opcjonalnie: animacja pulsu przy dodaniu */
@keyframes file-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.custom-file-upload.has-files {
    animation: file-pop 0.3s ease-out;
}
.custom-file-upload {
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-file-upload:hover {
    border-color: var(--accent-blue);
    background: rgba(0, 122, 255, 0.05);
}

/* Kiedy pliki są już wybrane (klasa z JS) */
.custom-file-upload.has-files {
    border-color: #34c759; /* Zielony Apple */
    background: rgba(52, 199, 89, 0.1);
}
