* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 15px;
    background: #090d18;
    color: #ffffff;
    font-family: Arial, sans-serif;
}

header {
    text-align: center;
    padding: 25px 12px;
    background: linear-gradient(135deg, #111a2d, #172642);
    border: 1px solid #2c4265;
    border-radius: 18px;
    box-shadow: 0 5px 20px #0005;
}

h1 {
    color: #38e6a5;
    font-size: 27px;
    margin: 0;
}

header p {
    color: #aab8cc;
    margin: 10px 0 0;
}

.card {
    background: linear-gradient(145deg, #111a2d, #121e33);
    padding: 18px;
    margin-top: 16px;
    border-radius: 16px;
    border: 1px solid #293d5e;
    box-shadow: 0 5px 18px #0004;
}

h2 {
    font-size: 20px;
    color: #38e6a5;
    margin: 0 0 15px;
}

label {
    display: block;
    color: #c5d2e5;
    margin-top: 10px;
    font-size: 14px;
}

input,
select {
    width: 100%;
    padding: 14px;
    margin: 7px 0;
    background: #080f1d;
    border: 1px solid #354765;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    outline: none;
}

input:focus,
select:focus {
    border-color: #38e6a5;
    box-shadow: 0 0 8px #38e6a544;
}

button {
    padding: 12px 16px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(135deg, #38e6a5, #14b982);
    color: #07130f;
    font-weight: bold;
    font-size: 14px;
    margin: 6px 2px;
    cursor: pointer;
}

button:active {
    transform: scale(.97);
}

button.secondary {
    background: #273954;
    color: white;
}

button.danger {
    background: #e74c3c;
    color: white;
}

.small {
    font-size: 13px;
    color: #aab8cc;
    line-height: 1.8;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tablewrap {
    overflow-x: auto;
    border-radius: 10px;
}

table {
    width: 100%;
    min-width: 440px;
    border-collapse: collapse;
    margin-top: 15px;
    background: #0b1424;
}

th,
td {
    padding: 12px 8px;
    border-bottom: 1px solid #293750;
    text-align: center;
    font-size: 13px;
}

th {
    background: #1c2a43;
    color: #38e6a5;
}

tr:nth-child(even) {
    background: #121e33;
}

.rank {
    color: #ffd45a;
    font-weight: bold;
}

footer {
    text-align: center;
    color: #8290a7;
    font-size: 13px;
    padding: 25px;
    line-height: 2;
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 23px;
    }

    .card {
        padding: 14px;
    }

    button {
        font-size: 12px;
    }
}

@media print {
    body {
        background: white;
        color: black;
    }

    header,
    .card {
        background: white;
        color: black;
        box-shadow: none;
    }

    button {
        display: none;
    }

    h1,
    h2 {
        color: black;
    }
}