/* ===== GLOBAL ===== */

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f5f7;
    overflow-x: hidden;
}

/* ===== SUBTELNE ANIMOWANE TŁO (BIAŁO-CZARNE) ===== */

body::before {
    content: "";
    position: fixed;
    top: -40%;
    left: -40%;
    width: 180%;
    height: 180%;
    background:
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.7), transparent 40%),
        radial-gradient(circle at 75% 75%, rgba(0,0,0,0.08), transparent 50%);
    animation: liquidFlow 40s linear infinite;
    z-index: -1;
}

@keyframes liquidFlow {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== UKŁAD ===== */

/* WYŚRODKOWANIE POZIOME */
.main-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* CONTENT OD GÓRY */
.content-box {
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
}

/* ===== GLASS CARD ===== */

.card {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    padding: 25px;
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* ===== PRZYCISKI (STONOWANE) ===== */

.buttons-center {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 35px;
}

.btn {
    border-radius: 16px !important;
    padding: 9px 18px;
    font-weight: 500;
    border: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

/* Kolory spokojne */
.btn-primary { background: #1c1c1e; }
.btn-success { background: #2c2c2e; }
.btn-danger  { background: #3a3a3c; }
.btn-dark    { background: #000; }

/* Delikatny efekt */
.btn:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    opacity: 0.95;
}

/* ===== TYTUŁ ===== */

h2 {
    text-align: center;
    font-weight: 600;
    margin-bottom: 30px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {

    .content-box {
        padding: 25px 15px;
    }

    .card {
        padding: 18px;
        border-radius: 18px;
    }

}
/* ============================= */
/* USERS PAGE */
/* ============================= */

.top-bar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:40px;
}

.btn-home{
    padding:10px 18px;
    background:#3b82f6;
    color:white;
    text-decoration:none;
    border-radius:12px;
    font-weight:500;
}

.btn-home:hover{
    background:#2563eb;
}

.admin-card{
    background:#1e293b;
    padding:30px;
    border-radius:20px;
    margin-bottom:40px;
    box-shadow:0 20px 45px rgba(0,0,0,0.4);
}

.admin-card h4{
    margin-bottom:20px;
}

.admin-form{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.admin-form input,
.admin-form select{
    padding:12px;
    border-radius:12px;
    border:none;
    background:#0f172a;
    color:#e5e7eb;
    font-size:14px;
}

.admin-form input:focus,
.admin-form select:focus{
    outline:2px solid #3b82f6;
}

.btn-primary{
    background:#3b82f6;
    color:white;
    padding:12px;
    border:none;
    border-radius:12px;
    font-weight:500;
    cursor:pointer;
}

.btn-primary:hover{
    background:#2563eb;
}

.admin-table{
    width:100%;
    border-collapse:collapse;
    background:#111827;
    border-radius:15px;
    overflow:hidden;
}

.admin-table th{
    background:#1f2937;
    padding:15px;
    text-align:left;
    font-size:13px;
    color:#9ca3af;
}

.admin-table td{
    padding:15px;
    border-top:1px solid #334155;
}

.admin-table tr:hover{
    background:#1e293b;
}

.status-badge{
    padding:6px 12px;
    border-radius:20px;
    font-size:12px;
    font-weight:600;
}

.status-badge.active{
    background:#22c55e;
    color:#000;
}

.status-badge.inactive{
    background:#ef4444;
    color:#fff;
}

.btn-small{
    background:#f59e0b;
    padding:6px 12px;
    border-radius:10px;
    text-decoration:none;
    font-size:12px;
    color:#000;
    font-weight:600;
}

.btn-small:hover{
    background:#d97706;
}

