/* ===== PANEL LOBBY / OGÓLNY STYL ===== */
body {
    background: #0f0f14;
    color: #eee;
    font-family: "Trebuchet MS", sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 40px 20px;
}

h1 {
    text-align: center;
    font-size: 2.6rem;
    margin-bottom: 20px;
    color: #FFD1DC;
    text-shadow: 0 0 15px #FFD1DC;
}

h2 {
    margin-top: 0px;
    margin-bottom: 15px;
    text-align: center;
    color: #FFD1DC;
}

/* ===== KOMUNIKAT ===== */
p {
    text-align: center;
    font-size: 1.1rem;
}

/* ===== FORMULARZ ===== */
form {
    display: flex;
    justify-content: center;
    margin-top: 0px;
    flex-wrap: wrap;
    gap: 10px;
}

form button {
    background: linear-gradient(135deg, #FFD1DC, #ffffff);
    border: none;
    color: #0f0f14;
    font-size: 1.1rem;
    padding: 14px 40px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 0 20px #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

form button:hover {
    transform: scale(1.08);
    box-shadow: 0 0 35px #FFD1DC;
}

/* ===== TABELA ===== */
.table-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 30px auto;
    overflow-x: auto;
}

.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    background: #15151f;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 0 20px #00000088;
}

.table-wrapper th,
.table-wrapper td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid #333;
}

.table-wrapper th {
    background: #111;
    color: #FFD1DC;
    font-weight: bold;
    text-shadow: 0 0 5px #FFD1DC;
}

.table-wrapper tr:hover {
    background: #222;
}

/* ===== STATUSY ===== */
.status {
    font-weight: bold;
    text-shadow: 0 0 5px currentColor;
}

.status.Oczekuje { color: #FFD86B; }
.status.Zaakceptowana { color: #7CFF7C; }
.status.Odrzucona { color: #FF6B6B; }

/* ===== SELECT AKCJI ===== */
.status-select {
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid #FFD1DC;
    background: #111;
    color: #FFD1DC;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.status-select:hover {
    box-shadow: 0 0 15px #FFD1DC;
}

/* ===== PRZYCISK PODGLĄDU ===== */
.preview-btn {
    margin-left: 15px;
    background: #222;
    border: 1px solid #FFD1DC;
    color: #FFD1DC;
    padding: 6px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preview-btn:hover {
    background: #FFD1DC;
    color: #111;
}

/* ===== SPINNER ===== */
.spinner {
    position: fixed;
    inset: 0;
    background: rgba(10,10,20,0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.spinner p {
    margin-top: 20px;
    color: #FFD1DC;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

.loader {
    width: 80px;
    height: 80px;
    border: 6px solid #222;
    border-top: 6px solid #FFD1DC;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== FORMULARZE I POLA INPUT ===== */
/* ===== WYGLĄD PÓL LOGIN / IMIĘ / NAZWISKO / HASŁO ===== */
form input[name="login"],
form input[name="first_name"],
form input[name="last_name"],
form input[type="password"] {
    background: #111 !important;     /* wymusza ciemne tło */
    color: #FFD1DC !important;      /* neonowy tekst */
    border: 2px solid #444 !important;
    border-radius: 12px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    outline: none !important;
    transition: border 0.3s, box-shadow 0.3s !important;
}

form input[name="login"]::placeholder,
form input[name="first_name"]::placeholder,
form input[name="last_name"]::placeholder,
form input[type="password"]::placeholder {
    color: #777 !important;
}

form input[name="login"]:focus,
form input[name="first_name"]:focus,
form input[name="last_name"]:focus,
form input[type="password"]:focus {
    border-color: #FFD1DC !important;
    box-shadow: 0 0 10px #FFD1DC !important;
}


/* ===== PRZYCISKI FORMULARZY ===== */
form button {
    background: linear-gradient(135deg, #FFD1DC, #ffffff);
    border: none;
    color: #0f0f14;
    font-size: 1.1rem;
    padding: 12px 10px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 0 20px #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;

}

form button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px #FFD1DC;
}

/* ===== TABELA ===== */
.table-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 30px auto;
    overflow-x: auto;
}

.users-table, .invoices-table {
    width: 100%;
    border-collapse: collapse;
    background: #15151f;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 0 20px #00000088;
}

.users-table th,
.users-table td,
.invoices-table th,
.invoices-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid #333;
    color: #eee;
}

.users-table th,
.invoices-table th {
    background: #111;
    color: #FFD1DC;
    font-weight: bold;
    text-shadow: 0 0 5px #FFD1DC;
}

.users-table tr:hover,
.invoices-table tr:hover {
    background: #222;
}

/* ===== SELECTY ===== */
select {
    background: #111;
    color: #FFD1DC;
    border: 2px solid #444;
    border-radius: 12px;
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    transition: border 0.3s, box-shadow 0.3s;
}

select:focus {
    border-color: #FFD1DC;
    box-shadow: 0 0 10px #FFD1DC;
}

select option {
    background: #111;
    color: #FFD1DC;
}

/* ===== UNIWERSALNY STYL INPUTÓW W FORMULARZACH ===== */
form input[type="text"],
form input[type="password"],
form input[type="date"],
form input[type="time"] {
    background: #111 !important;     /* ciemne tło */
    color: #FFD1DC !important;      /* neonowy tekst */
    border: 2px solid #444 !important;
    border-radius: 12px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    outline: none !important;
    transition: border 0.3s, box-shadow 0.3s !important;
}

form input[type="text"]::placeholder,
form input[type="password"]::placeholder,
form input[type="date"]::placeholder,
form input[type="time"]::placeholder {
    color: #777 !important;
}

form input[type="text"]:focus,
form input[type="password"]:focus,
form input[type="date"]:focus,
form input[type="time"]:focus {
    border-color: #FFD1DC !important;
    box-shadow: 0 0 10px #FFD1DC !important;
}

.back-button {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #FFD1DC, #ffffff);
    color: #0f0f14;
    font-weight: bold;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 0 15px #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px #FFD1DC;
}

.invoice-details td {
    background:#1a1a2e;
    padding:15px;
    border-bottom:1px solid #333;
}

.details-content p {
    margin:5px 0;
    color:#FFD1DC;
}

