/* --------------------------------------------------
   GLOBAL — ciemny elegancki motyw
-------------------------------------------------- */
body {
    font-family: Arial, sans-serif;
    background: #1c1c1c;
    color: #ddd;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --------------------------------------------------
   CONTAINERS — elegancki soft glow + smooth hover
-------------------------------------------------- */
.container,
.form-container {
    background: #262626;
    padding: 2rem;
    border-radius: 14px;
    width: 90%;
    max-width: 460px;

    border: 1px solid rgba(255, 0, 0, 0.12);
    box-shadow:
        0 0 12px rgba(0, 0, 0, 0.6),
        0 0 25px rgba(255, 0, 0, 0.12);

    animation: fadeIn 0.6s ease-out;
    text-align: center;
    transition: 0.35s ease;
}

.container:hover,
.form-container:hover {
    transform: translateY(-5px);
    box-shadow:
        0 0 18px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(255, 0, 0, 0.18);
}

/* większy kontener w index */
.container {
    max-width: 900px;
}

/* --------------------------------------------------
   HEADERS — stonowana elegancja
-------------------------------------------------- */
h1, h2 {
    color: #ff4a4a;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    animation: softGlow 3s infinite alternate ease-in-out;
}

@keyframes softGlow {
    from { text-shadow: 0 0 3px rgba(255, 70, 70, 0.3); }
    to   { text-shadow: 0 0 8px rgba(255, 70, 70, 0.4); }
}

/* --------------------------------------------------
   BUTTONS — eleganckie, stonowane
-------------------------------------------------- */
.btn,
.btn-back,
.tab-btn,
input[type="submit"] {
    background: #ff3a3a;
    color: #fff;
    padding: 12px 20px;
    margin-top: 8px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: 0.25s ease;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.22);
}

.btn:hover,
.btn-back:hover,
input[type="submit"]:hover,
.tab-btn:hover {
    background: #d52d2d;
    transform: scale(1.04);
    box-shadow: 0 0 14px rgba(255, 0, 0, 0.25);
}

.tab-btn.active {
    background: #ff3a3a;
    color: #000;
}

/* Back pod formularzem */
.form-back {
    display: block;
    width: max-content;
    margin: 15px auto 0 auto;
}

/* --------------------------------------------------
   INPUTS — smooth focus & hover
-------------------------------------------------- */
input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid #3b3b3b;
    border-radius: 6px;
    color: white;
    margin-bottom: 12px;
    transition: 0.25s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    border-color: #ff3a3a;
    background: #222;
    box-shadow: 0 0 10px rgba(255,0,0,0.22);
}

input:hover {
    background: #202020;
}

/* --------------------------------------------------
   TABLES — nowoczesne, gładkie
-------------------------------------------------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    animation: fadeIn 0.7s ease-in-out;
}

table th,
table td {
    padding: 12px;
    border-bottom: 1px solid #383838;
    color: #e0e0e0;
}

table th {
    cursor: pointer;
    background: #303030;
    transition: 0.25s;
}

table th:hover {
    background: #363636;
}

table tr:nth-child(even) {
    background: #2c2c2c;
}

/* --------------------------------------------------
   TABS
-------------------------------------------------- */
.tab-buttons {
    margin-bottom: 20px;
}

/* --------------------------------------------------
   HIDDEN
-------------------------------------------------- */
.hidden {
    display: none;
}

/* --------------------------------------------------
   ANIMATIONS — elegancki fade-in
-------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}