/* --- Globalne & Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Lepsza czcionka systemowa */
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #d0d0d0; /* Bardzo jasny szary tła */
    color: #343a40; /* Ciemniejszy szary dla tekstu */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image: url('/assets/img/bg.png');
}

/* --- Kontener & Układ --- */
.container {
    max-width: 1100px; /* Trochę szerszy kontener */
    margin: 0px auto;
    padding: 10px;
    background-color: #ffffff; /* Białe tło kontenera */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Subtelny cień */
    border-radius: 8px; /* Lekko zaokrąglone rogi */
}

.logo-container {
    text-align: center;

}

/* --- Nawigacja --- */
nav {
    background-color: #4a5568; /* Ciemny, stonowany szaro-niebieski */
    color: #e2e8f0; /* Jasny tekst w nawigacji */
    padding: 12px 0;
    text-align: center;
    margin-bottom: 30px;
    border-radius: 5px;
    align-items: center; /* Wyrównanie w pionie */
     display: flex;
     justify-content: center;
}

nav a {
    color: #e2e8f0;
    text-decoration: none;
    margin: 0 15px;
    padding: 5px 0;
    transition: color 0.2s ease, border-bottom 0.2s ease;
    border-bottom: 2px solid transparent; /* Dla efektu hover */

}

nav a:hover {
    color: #ffffff; /* Jaśniejszy tekst na hover */
    border-bottom-color: #63b3ed; /* Akcentujący kolor podkreślenia */
}


a[class^="nav-"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin: 0 10px;
}

a[class^="nav-"]::before {
    content: "";
    display: block;
    width: 32px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
    margin-bottom: 4px;
}
/* Ikony do konkretnych klas */
.nav-login::before {background-image: url('/ico/login.png');}
.nav-reg::before {background-image: url('/ico/reg.png');}
.nav-faq::before {background-image: url('/ico/faq.png');}
.nav-terms::before {background-image: url('/ico/terms.png');}
.nav-email::before {background-image: url('/ico/email.png');}
.nav-send::before {background-image: url('/ico/send.png');}
.nav-home::before {background-image: url('/ico/home.png');}
.nav-dashboard::before {background-image: url('/ico/dashboard.png');}
.nav-logout::before {background-image: url('/ico/logout.png');}

/* Media Query dla małych ekranów */
@media (max-width: 768px) {
    /* Ukrywamy teksty */
    nav a {
        padding: 8px 0;
        font-size: 0; /* Ukrywa teksty */
    }

    /* Ikony są nadal widoczne */
    nav a::before {
        display: block;
    }
}

/* --- Typografia --- */
h1, h2, h3 {
    color: #2c3e50; /* Ciemny granatowy dla nagłówków */
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
}
h1 { font-size: 2.2em; }
h2 { font-size: 1.8em; margin-top: 30px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
h3 { font-size: 1.4em; }

p {
    margin-bottom: 15px;
}

a {
    color: #3498db; /* Niebieski link */
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

small {
    font-size: 0.85em;
    color: #6c757d; /* Ciemniejszy szary dla małego tekstu */
}

/* --- Formularze --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500; /* Lekko pogrubiona etykieta */
    color: #495057;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 12px 15px; /* Większy padding */
    border: 1px solid #ced4da; /* Jasnoszara ramka */
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group select:focus {
    border-color: #80bdff; /* Niebieska ramka na focus */
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25); /* Subtelny cień na focus */
}

.form-group input[readonly] {
    background-color: #e9ecef; /* Jasnoszary dla readonly */
    cursor: text;
}

/* --- Przyciski --- */
button, .button-like {
    display: inline-block;
    font-weight: 500;
    color: #ffffff;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: #5DADE2; /* Główny kolor przycisku - stonowany niebieski */
    border: 1px solid #5DADE2;
    padding: 10px 20px; /* Dopasowany padding */
    font-size: 1em;
    border-radius: 5px;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none; /* Dla .button-like */
}
button:not(:disabled):hover,
.button-like:hover {
    background-color: #3498DB; /* Ciemniejszy niebieski na hover */
    border-color: #2E86C1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
button:focus, .button-like:focus {
     outline: 0;
     box-shadow: 0 0 0 0.2rem rgba(93, 173, 226, 0.5);
}

button:disabled {
    background-color: #adb5bd; /* Szary dla nieaktywnego */
    border-color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.7;
}

button.delete-button {
    background-color: #E74C3C; /* Stonowany czerwony */
    border-color: #E74C3C;
}
button.delete-button:hover {
    background-color: #C0392B; /* Ciemniejszy czerwony */
    border-color: #A93226;
}
button.delete-button:focus {
     box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.5);
}


/* --- Stopka --- */

        .stopka {
            width: 100%;
            background-color: #454f61;
            border: none;
            border-radius: 10px;
            padding: 10px;
            display: flex;
            justify-content: center;
            align-items: flex-end;
            position: relative;
            margin-top:50px;
        }

        .stopka::before {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            background-image: url('/assets/img/sz.png'); /* Wstaw tutaj ścieżkę do Twojego obrazka */
            background-size: contain;
            background-repeat: no-repeat;
            width: 100px; /* Dostosuj szerokość do Twoich potrzeb */
            height: 100px; /* Dostosuj wysokość do Twoich potrzeb */
        }

        .stopka p {
            font-size: 16px;
            font-weight: bold;
            color: #e1e8ed;
            margin: 0;
        }


/* --- Komunikaty (Success, Error, Info, Warning) --- */
.message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 5px;
    display: flex; /* Umożliwia dodanie ikony */
    align-items: center;
}
.message::before { /* Miejsce na ikonę */
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    flex-shrink: 0; /* Ikona się nie kurczy */
}

.message.success {
    color: #155724; /* Ciemnozielony tekst */
    background-color: #d4edda; /* Jasnozielone tło */
    border-color: #c3e6cb; /* Zielona ramka */
}
.message.success::before {
    /* Ikona SVG галочки (check) zakodowana w URL */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23155724'%3E%3Cpath d='M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425z'/%3E%3C/svg%3E");
}

.message.error, .client-validation-error {
    color: #721c24; /* Ciemnoczerwony tekst */
    background-color: #f8d7da; /* Jasnoczerwone tło */
    border-color: #f5c6cb; /* Czerwona ramka */
}
.message.error::before, .client-validation-error::before {
     /* Ikona SVG krzyżyka (X) */
     background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23721c24'%3E%3Cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3E%3C/svg%3E");
     margin-right: 12px; /* Dodajemy ikonę też do client-error */
     flex-shrink: 0;
}
.client-validation-error {
     padding: 15px 20px; /* Dopasowanie stylu */
     display: flex;
     align-items: center;
}

.message.info {
    color: #0c5460; /* Ciemnoniebieski tekst */
    background-color: #d1ecf1; /* Jasnoniebieskie tło */
    border-color: #bee5eb; /* Niebieska ramka */
}
.message.info::before {
     /* Ikona SVG informacji (i) */
     background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230c5460'%3E%3Cpath d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412l-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z'/%3E%3C/svg%3E");
}


.message.warning {
    color: #856404; /* Ciemnożółty tekst */
    background-color: #fff3cd; /* Jasnożółte tło */
    border-color: #ffeeba; /* Żółta ramka */
}
.message.warning::before {
    /* Ikona SVG ostrzeżenia (wykrzyknik) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23856404'%3E%3Cpath d='M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z'/%3E%3C/svg%3E");
}

.errors ul, .client-validation-error ul { /* Specyficzne dla list błędów */
    margin: 0;
    padding-left: 20px;
    color: #721c24; /* Dopasowanie koloru listy */
}
.client-validation-error ul { margin-left: 10px; } /* Odstęp od ikony */


/* --- Drag and Drop Area --- */
.drop-zone {
    border: 2px dashed #adb5bd; /* Stonowana kreskowana ramka */
    padding: 30px; /* Większy padding */
    text-align: center;
    cursor: pointer;
    background-color: #f8f9fa; /* Jasne tło */
    transition: background-color 0.2s ease, border-color 0.2s ease;
    border-radius: 8px;
    position: relative; /* Dla potencjalnych ikon w tle */
}
/* Ikona uploadu w tle */
.drop-zone::before {
     content: "";
     position: absolute;
     top: 25px;
     left: 50%;
     transform: translateX(-50%);
     width: 40px;
     height: 40px;
     background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23adb5bd'%3E%3Cpath fill-rule='evenodd' d='M8 0a5.53 5.53 0 0 0-3.594 1.342c-.766.66-1.321 1.52-1.464 2.383C1.266 4.095 0 5.555 0 7.318 0 9.366 1.708 11 3.781 11H7.5V5.707L5.354 7.854a.5.5 0 1 1-.708-.708l3-3a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 5.707V11h4.188C14.502 11 16 9.57 16 7.773c0-1.636-1.242-2.969-2.834-3.194C12.923 1.999 10.69 0 8 0zm-.5 14.5V11h1v3.5a.5.5 0 0 1-1 0z'/%3E%3C/svg%3E");
     background-size: contain;
     background-repeat: no-repeat;
     opacity: 0.6;
     transition: opacity 0.2s ease;
     z-index: 0;
}

.drop-zone.dragover {
    background-color: #e9ecef; /* Lekko ciemniejsze tło na dragover */
    border-color: #80bdff; /* Niebieska ramka */
}
.drop-zone.dragover::before {
    opacity: 0.9; /* Ikona bardziej widoczna */
}


.drop-zone p {
    margin: 45px 0 10px 0; /* Odstęp od ikony */
    font-size: 1.1em;
    color: #6c757d;
    position: relative; /* Aby tekst był nad ikoną */
    z-index: 1;
}

/* --- Lista wybranych plików --- */
#file-list-anon ul,
#file-list-user ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    font-size: 0.9em;
    text-align: left;
}
#file-list-anon li,
#file-list-user li {
    background-color: #e9ecef; /* Jasne tło elementu listy */
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #dee2e6;
}
#file-list-anon .file-size,
#file-list-user .file-size {
    color: #6c757d; /* Ciemniejszy szary dla rozmiaru */
    margin-left: 10px;
    white-space: nowrap; /* Zapobiega łamaniu rozmiaru */
}
#file-list-anon li button, /* Styl przycisku usuwania w liście */
#file-list-user li button {
    background: none;
    border: none;
    color: #E74C3C; /* Czerwony kolor */
    cursor: pointer;
    font-size: 1.2em; /* Większa ikona usuwania (można użyć ikony) */
    padding: 0 5px;
    margin-left: 10px;
    line-height: 1;
}
#file-list-anon li button:hover,
#file-list-user li button:hover {
    color: #C0392B; /* Ciemniejszy czerwony na hover */
}


/* --- Postęp i wynik uploadu --- */
#upload-progress-anon,
#upload-progress-user {
    margin-top: 20px;
    height: 10px; /* Wysokość kontenera progress baru */
}
#upload-progress-anon progress,
#upload-progress-user progress {
    width: 100%;
    height: 10px;
    border: none;
    border-radius: 5px;
    appearance: none; /* Usuń domyślny wygląd */
    -webkit-appearance: none;
}
/* Styl paska postępu dla Chrome/Safari */
#upload-progress-anon progress::-webkit-progress-bar,
#upload-progress-user progress::-webkit-progress-bar {
    background-color: #e9ecef; /* Tło paska */
    border-radius: 5px;
}
#upload-progress-anon progress::-webkit-progress-value,
#upload-progress-user progress::-webkit-progress-value {
    background-color: #5DADE2; /* Kolor postępu */
    border-radius: 5px;
    transition: width 0.1s linear;
}
/* Styl paska postępu dla Firefox */
#upload-progress-anon progress::-moz-progress-bar,
#upload-progress-user progress::-moz-progress-bar {
    background-color: #5DADE2; /* Kolor postępu */
    border-radius: 5px;
    transition: width 0.1s linear;
}

#upload-result-anon,
#upload-result-user {
     margin-top: 15px;
     padding: 15px 20px;
     border-radius: 5px;
     border: 1px solid transparent;
}
#upload-result-anon.success,
#upload-result-user.success {
     color: #155724; background-color: #d4edda; border-color: #c3e6cb;
}
#upload-result-anon.error,
#upload-result-user.error {
     color: #721c24; background-color: #f8d7da; border-color: #f5c6cb;
}
#upload-result-anon ul, /* Lista plików w wyniku */
#upload-result-user ul {
    margin: 15px 0 5px 0;
    padding: 0;
    list-style: none;
}
#upload-result-anon ul li,
#upload-result-user ul li {
    margin-bottom: 5px;
    font-size: 0.95em;
    word-break: break-all; /* Łam długie nazwy */
}
#upload-result-anon ul li a,
#upload-result-user ul li a {
    margin-left: 10px;
    font-weight: 500;
}


/* --- Tabele (Lista plików w dashboard) --- */
.file-list table, .trash-section table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    font-size: 0.95em; /* Lekko mniejsza czcionka w tabeli */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Subtelny cień dla tabeli */
}
.file-list th, .file-list td,
.trash-section th, .trash-section td {
    border: 1px solid #dee2e6; /* Jasnoszare linie */
    padding: 12px 15px; /* Większy padding w komórkach */
    text-align: left;
    vertical-align: middle; /* Wyrównanie w pionie */
}
.file-list th, .trash-section th {
    background-color: #e9ecef; /* Jasnoszary nagłówek */
    font-weight: 600; /* Pogrubiony tekst nagłówka */
    color: #495057;
}
/* Zebra striping dla wierszy */
.file-list tbody tr:nth-child(even),
.trash-section tbody tr:nth-child(even) {
    background-color: #f8f9fa; /* Bardzo jasny szary dla co drugiego wiersza */
}
.file-list tbody tr:hover,
.trash-section tbody tr:hover {
     background-color: #e2e8f0; /* Podświetlenie wiersza na hover */
}

.file-list .actions form,
.trash-section .actions form {
    display: inline-block;
    margin: 0 3px 0 0;
}
.file-list .actions button,
.trash-section .actions button {
    padding: 5px 10px; /* Mniejsze przyciski akcji */
    font-size: 0.9em;
}

.file-list img.thumbnail {
    max-width: 150px; /* Trochę większe miniatury */
    max-height:150px;
    vertical-align: middle;
    margin-right: 10px;
    border-radius: 4px; /* Zaokrąglenie miniatur */
    border: 1px solid #dee2e6;
    background-color: #fff; /* Białe tło pod przezroczystymi PNG */
}

.file-list input[type="text"][readonly] { /* Pole linku */
    width: 100%;
    min-width: 200px;
    padding: 5px 8px;
    font-size: 0.9em;
    background-color: #fff; /* Białe tło, żeby było czytelne */
}



/* --- Responsywność --- */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 20px;
        margin-top: 15px;
        margin-bottom: 15px;
    }
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.5em; }

    .file-list th, .file-list td,
    .trash-section th, .trash-section td {
        font-size: 0.9em;
        padding: 8px 10px;
        /* Ukrywanie mniej ważnych kolumn na małych ekranach - przykład */
        /* &:nth-child(3), &:nth-child(5) { display: none; } */
    }
    .file-list input[type="text"][readonly] {
        min-width: 150px;
    }
     .file-list .actions form {
        display: block; /* Przyciski akcji jeden pod drugim */
        margin-bottom: 5px;
    }
     .file-list .actions button {
        width: 100%;
    }
    nav a { margin: 0 8px; }
}

@media (max-width: 480px) {
    .logo-container svg, .logo-container img { height: 40px; width: auto; }
    h1 { font-size: 1.6em; }
    button, .button-like { width: 100%; margin-bottom: 10px; } /* Przyciski na całą szerokość */
    button:last-child, .button-like:last-child { margin-bottom: 0; }
    .drop-zone { padding: 20px; }
    .drop-zone::before { width: 30px; height: 30px; top: 15px; }
    .drop-zone p { margin-top: 35px; font-size: 1em; }
}

/* --- Kontener i przycisk kopiowania linku --- */
.copy-link-container {
    display: flex;
    align-items: center;
}
.copy-link-container input[type="text"][readonly] {
    flex-grow: 1; /* Input zajmuje dostępną przestrzeń */
    margin-right: 5px; /* Odstęp od przycisku */
    /* Zachowaj istniejące style dla inputa */
    width: auto; /* Usuń stałą szerokość, jeśli była */
    min-width: 150px; /* Minimalna szerokość */
    padding: 5px 8px;
    font-size: 0.9em;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
}
.copy-link-button {
    flex-shrink: 0; /* Przycisk się nie kurczy */
    padding: 5px 8px;
    font-size: 1.1em; /* Rozmiar ikony/tekstu */
    cursor: pointer;
    background-color: #e9ecef; /* Jasnoszary przycisk */
    border: 1px solid #ced4da;
    border-radius: 4px;
    color: #495057;
    line-height: 1; /* Zapobiega dodatkowej wysokości */
    transition: background-color 0.2s ease, color 0.2s ease;
}
.copy-link-button:hover {
    background-color: #dee2e6;
}
.copy-link-button.copied {
    background-color: #d4edda; /* Zielone tło po skopiowaniu */
    color: #155724;
    border-color: #c3e6cb;
}

/* Kontener dla akcji zbiorczych */
.bulk-actions-container {
    padding: 10px 0;
}

#delete-selected-btn:disabled {
     opacity: 0.5;
     cursor: not-allowed;
}

/* --- Poprawka długich nazw plików w tabelach --- */
.file-list td:nth-child(3), /* Kolumna "Nazwa oryginalna" w liście plików */
.trash-section td:nth-child(2) { /* Kolumna "Nazwa oryginalna" w koszu */
    max-width: 220px; /* Maksymalna szerokość komórki - dostosuj wg potrzeb */
    overflow: hidden; /* Ukryj nadmiarową treść */
    text-overflow: ellipsis; /* Dodaj wielokropek (...) */
    white-space: nowrap; /* Zapobiegaj łamaniu tekstu do nowej linii */
}

/* Opcjonalnie: Lepsze formatowanie podpowiedzi (title) */
/* Przeglądarki mają ograniczone możliwości stylizacji title,
   ale można dodać podstawowe wskazówki */
[title] {
    /* Można dodać subtelne podkreślenie, by wskazać interaktywność */
    /* border-bottom: 1px dotted #6c757d; */
    cursor: help; /* Zmień kursor na znak zapytania */
}

         /* Pełny CSS jak w poprzedniej odpowiedzi */
         #custom-pattern-group { margin-top: 15px; padding: 15px; background-color: #f8f9fa; border: 1px solid #dee2e6; border-radius: 5px; } #custom-pattern-group label { font-weight: bold; margin-bottom: 8px; display: block;} #custom-pattern-group input[type="text"] { width: 100%; } .naming-option small { display: block; margin-top: 5px; color: #6c757d; font-size: 0.9em; } .variable-list { font-size: 0.85em; margin-top: 10px; background: #eee; padding: 8px; border-radius: 3px;} .variable-list code { background: #ddd; padding: 1px 3px; border-radius: 2px;}

         .dashboard-nav { margin-bottom: 30px; border-bottom: 1px solid #dee2e6; padding-bottom: 15px; }
         .dashboard-nav a { background-color: #f9fcff; display: inline-block; padding: 10px 10px; margin-right: 1px; text-decoration: none; color: #495057; border-radius: 5px; transition: background-color 0.2s ease, color 0.2s ease; font-weight: 500; position: relative;  padding-left: 38px;}
         .dashboard-nav a:hover { background-color: #e9ecef; color: #2c3e50; }
         .dashboard-nav a.active { background-color: #5DADE2; color: #ffffff; }


.dashboard-nav a::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background-size: contain;
  background-repeat: no-repeat;
}
/* Dodajesz ikonki kolejno do linków */
.dashboard-nav a:nth-child(1)::before {background-image: url('/ico/1.png');}
.dashboard-nav a:nth-child(2)::before {background-image: url('/ico/2.png');}
.dashboard-nav a:nth-child(3)::before {background-image: url('/ico/3.png');}
.dashboard-nav a:nth-child(4)::before {background-image: url('/ico/5.png');}
.dashboard-nav a:nth-child(5)::before {background-image: url('/ico/4.png');}

         .storage-info { float:right; width:400px; margin-bottom: 20px; padding: 10px 15px; background-color: #e9ecef; border-radius: 5px; font-size: 0.95em; border: 1px solid #dee2e6; }
         .storage-info strong { color: #2c3e50; }

         .storage-bar-container { background-color: #dee2e6; border-radius: 5px; margin-top: 5px; height: 12px; overflow: hidden; } .storage-bar { background-color: #5DADE2; height: 100%; transition: width 0.5s ease; text-align: center; color: white; font-size: 0.8em; line-height: 12px; } .storage-percentage { font-size: 0.9em; color: #6c757d; margin-left: 5px;} .file-list table,

         .trash-section table, .folder-list table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 0.95em; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
         .file-list th, .file-list td, .trash-section th, .trash-section td, .folder-list th, .folder-list td { border: 1px solid #dee2e6; padding: 10px 12px; text-align: left; vertical-align: middle; } .file-list th, .trash-section th, .folder-list th { background-color: #e9ecef; font-weight: 600; color: #495057; } .file-list tbody tr:nth-child(even),

         .trash-section tbody tr:nth-child(even),
         .folder-list tbody tr:nth-child(even) { background-color: #f8f9fa; }
         .file-list tbody tr:hover, .trash-section tbody tr:hover, .folder-list tbody tr:hover { background-color: #e2e8f0; } .file-list td:nth-child(1), .file-list th:nth-child(1), .trash-section td:nth-child(1), .trash-section th:nth-child(1) { width: 30px; text-align: center; } .file-list td:nth-child(2), .trash-section td:nth-child(2) { text-align: center; width: 70px; }

         .file-list img.thumbnail, .trash-section img.thumbnail { max-width: 120px; max-height: 120px; vertical-align: middle; border-radius: 4px; border: 1px solid #dee2e6; background-color: #fff; display: block; margin: 0 auto; } .actions button { padding: 5px 8px; font-size: 1em; margin-left: 4px; vertical-align: middle; line-height: 1;} .copy-link-container { display: flex; align-items: center; } .copy-link-container input[type="text"][readonly] { flex-grow: 1; margin-right: 5px; width: auto; min-width: 150px; padding: 5px 8px; font-size: 0.9em; background-color: #fff; border: 1px solid #ced4da; border-radius: 4px; } .copy-link-button { flex-shrink: 0; padding: 5px 8px; font-size: 1.1em; cursor: pointer; background-color: #e9ecef; border: 1px solid #ced4da; border-radius: 4px; color: #495057; line-height: 1; transition: background-color 0.2s ease, color 0.2s ease; } .copy-link-button:hover { background-color: #dee2e6; } .copy-link-button.copied { background-color: #d4edda; color: #155724; border-color: #c3e6cb; }

         .bulk-actions-container { padding: 10px 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
         .bulk-actions-container button:disabled { opacity: 0.5; cursor: not-allowed; }


         #selection-counter, #trash-selection-counter { color: #6c757d; font-size: 0.9em; } .trash-section small { display: block; color: #6c757d; font-size: 0.9em; margin-top: 3px; } .empty-trash-container { margin-top: 20px; text-align: right; } .empty-trash-container form { display: inline-block; } .actions button[title="Przywróć plik"] { background-color: #28a745; border-color: #28a745; color: white; } .actions button[title="Przywróć plik"]:hover { background-color: #218838; border-color: #1e7e34; } .hidden-forms { display: none; }

         .pagination { margin-top: 30px; text-align: center; }
         .pagination a, .pagination span { display: inline-block; padding: 8px 12px; margin: 0 2px; border: 1px solid #dee2e6; color: #007bff; text-decoration: none; border-radius: 4px; transition: background-color 0.2s ease, color 0.2s ease; }
         .pagination a:hover { background-color: #e9ecef; border-color: #adb5bd; }
         .pagination span.current { background-color: #007bff; color: white; border-color: #007bff; font-weight: bold; cursor: default; }
         .pagination span.disabled { color: #6c757d; border-color: #dee2e6; cursor: default; }

         .file-list th a, .trash-section th a, .folder-list th a { text-decoration: none; color: inherit; display: block; }
         .file-list th a:hover, .trash-section th a:hover, .folder-list th a:hover { color: #0056b3; } .sort-arrow { font-size: 0.8em; vertical-align: middle; } .file-list td:nth-child(3), .trash-section td:nth-child(3), .folder-list td:nth-child(1) a { display: inline-block; max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; } .folder-list td:nth-child(1) { max-width: 300px; } [title] { cursor: help; } .modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.5); animation: fadeIn 0.3s ease; } .modal-content { background-color: #fefefe; margin: 10% auto; padding: 25px; border: 1px solid #bbb; width: 90%; max-width: 550px; border-radius: 6px; position: relative; box-shadow: 0 5px 15px rgba(0,0,0,0.2); animation: slideIn 0.3s ease; } @keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} } @keyframes slideIn { from {top: -50px; opacity: 0;} to {top: 0; opacity: 1;} } .close-modal { color: #aaa; float: right; font-size: 32px; font-weight: bold; position: absolute; top: 10px; right: 20px; line-height: 1; } .close-modal:hover, .close-modal:focus { color: #333; text-decoration: none; cursor: pointer; } .modal-content h2 { margin-top: 0; color: #333; border-bottom: 1px solid #eee; padding-bottom: 10px;} .modal .form-group label { font-weight: 500; } .modal .form-group input[type="text"], .modal .form-group select { margin-top: 5px; } .folder-list td:nth-child(3), .folder-list th:nth-child(3) { text-align: center; width: 100px; } .folder-list td:nth-child(4), .folder-list th:nth-child(4) { text-align: center; width: 100px; } .folder-list .actions button { display: inline-block; margin: 0 2px; }

         #folder-select-container { margin-bottom: 20px; padding: 10px 15px; background-color: #e9ecef; border-radius: 5px; font-size: 0.95em; border: 1px solid #dee2e6; }
         #folder-select-container label { font-weight: bold; margin-right: 10px; vertical-align: middle;}
         #folder-select-container select { padding: 8px 10px; border: 1px solid #ced4da; border-radius: 5px; font-size: 0.95em; min-width: 200px; vertical-align: middle; }
