html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    background:
        linear-gradient(
            135deg,
            #f4f6f8,
            #dde4ea
        );
    color: #222;
}

/* ---------- GENERAL CONTAINERS ---------- */

.container {
    flex: 1;
    width: 92%;
    max-width: 850px;
    margin: 60px auto;
    padding: 45px;
    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f8fafc
        );
    border-radius: 22px;
    box-shadow:
        0 12px 28px rgba(0,0,0,.08);
    text-align: center;
    border-top:
        6px solid #d62828;
}

.loggedin-container {
    width: 92%;
    max-width: 1400px;
    margin: 50px auto;
    padding: 35px;
    background: white;
    border-radius: 18px;
    box-shadow:
        0 10px 25px rgba(0,0,0,.08);
}

/* ---------- HEADERS ---------- */

.header {
    margin-bottom: 12px;
    font-size: 34px;
    color: #1d3557;
    font-weight: bold;
}

.container p {
    color: #555;
    margin-bottom: 25px;
}

h1, h2, h3 {
    margin-top: 0;
    color: #1d3557;
}

/* ---------- FORMS ---------- */

form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 25px;
}

label {
    text-align: left;
    font-weight: bold;
    font-size: 14px;
    color: #444;
}

input[type="text"],
input[type="password"],
select {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #d3dbe3;
    font-size: 15px;
    background: #f9fbfc;
    transition: .2s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow:
        0 0 0 4px rgba(0,123,255,.12);
}

/* ---------- BUTTONS ---------- */

input[type="submit"],
input[type="button"] {
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    background:
        linear-gradient(
            135deg,
            #007BFF,
            #0056b3
        );
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition:
        transform .15s ease,
        box-shadow .15s ease;
    box-shadow:
        0 4px 10px rgba(0,123,255,.2);
}

input[type="submit"]:hover,
input[type="button"]:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 18px rgba(0,123,255,.3);
}

.loggedin-container input[type="button"] {
    background:
        linear-gradient(
            135deg,
            #dc3545,
            #a71d2a
        );
}

/* ---------- ERROR ---------- */

.error {
    color: #b00020;
    background: #ffe5e5;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 18px;
}

/* ---------- LINKS ---------- */

a {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

/* ---------- FOOTER ---------- */

footer {
    text-align: center;
    padding: 18px;
    background: #1d3557;
    color: white;
    font-size: 14px;
    border-top:
        4px solid #007BFF;
}

/* ---------- LOGGED IN ---------- */

.loggedin-container p {
    font-size: 18px;
}

/* ---------- SEARCH BAR ---------- */

.loggedin-container form {
    display: flex;
    flex-direction: row;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin:
        30px 0;
}

.loggedin-container input[type="text"] {
    flex: 1;
    min-width: 220px;
}

/* ---------- FIGHTER GRID ---------- */

.fighter-container {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(280px,1fr)
        );
    gap: 25px;
    margin-top: 30px;
}

/* ---------- FIGHTER CARDS ---------- */

.fighter-card {
    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f8fafc
        );
    border-radius: 18px;
    padding: 24px;
    box-shadow:
        0 8px 18px rgba(0,0,0,.08);
    transition:
        transform .2s ease,
        box-shadow .2s ease;
    border-top:
        5px solid #d62828;
}

.fighter-card:hover {
    transform:
        translateY(-6px);
    box-shadow:
        0 14px 28px rgba(0,0,0,.12);
}

.fighter-card h2 {
    margin-top: 0;
    margin-bottom: 14px;
    color: #d62828;
    font-size: 24px;
}

.fighter-card p {
    margin: 8px 0;
    color: #444;
    font-size: 15px;
}

/* ---------- ROLE / ADMIN ---------- */

.role-badge {
    display: inline-block;
    background:
        #1d3557;
    color: white;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    margin-bottom: 20px;
}

.admin-panel {
    background:
        #f1f5f9;
    border-left:
        5px solid #007BFF;
    padding: 18px;
    border-radius: 12px;
    margin:
        25px 0;
}

.button-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}