* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #07111f;
    color: #ffffff;
}

.login-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #07111f 0%, #0a1628 100%);
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #0d1b2f;
    border: 1px solid #1f314d;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.login-card h1 {
    color: #2ed573;
    font-size: 38px;
    margin-bottom: 12px;
}

.login-subtitle {
    color: #b7c6db;
    font-size: 16px;
    margin-bottom: 24px;
}

.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.login-form input {
    width: 100%;
    max-width: 280px;
    padding: 14px 16px;
    border: 1px solid #24364f;
    border-radius: 10px;
    background: #f3f4f6;
    color: #111827;
    font-size: 16px;
    text-align: center;
    outline: none;
    transition: 0.2s ease;
}

.login-form input:focus {
    border-color: #2ed573;
    box-shadow: 0 0 0 3px rgba(46, 213, 115, 0.15);
}

.primary-btn,
.secondary-btn,
button {
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s ease;
}

.primary-btn,
button {
    background: #2ed573;
    color: #07111f;
    font-weight: 700;
    min-width: 160px;
}

.primary-btn:hover,
button:hover {
    background: #25c565;
    transform: translateY(-1px);
}

.secondary-btn {
    background: transparent;
    color: #dbe5f2;
    border: 1px solid #2c4261;
    min-width: 160px;
}

.secondary-btn:hover {
    background: #16263d;
    border-color: #3e5d86;
}

.error-message {
    background: #3a1212;
    color: #ff8e8e;
    border: 1px solid #7a2626;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    text-align: center;
    font-size: 14px;
}

.success-message {
    background: #12351f;
    color: #7dffad;
    border: 1px solid #1f7a3a;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    text-align: center;
    font-size: 14px;
}

.sidebar {
    width: 240px;
    min-height: 100vh;
    background: #0d1b2f;
    padding: 24px 16px;
    position: fixed;
    left: 0;
    top: 0;
    border-right: 1px solid #1f314d;
    overflow: hidden;
}

.logo-box {
    width: 100%;
    height: 76px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    overflow: hidden;
}

.logo-box img {
    max-width: 70px;
    max-height: 62px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.sidebar h3 {
    color: #2ed573;
    text-align: center;
    margin-bottom: 24px;
    font-size: 23px;
}

.sidebar a,
.sidebar a:visited {
    display: block;
    text-decoration: none;
    color: #ffffff;
    background: #1a2740;
    padding: 13px;
    margin-bottom: 12px;
    text-align: center;
    border-radius: 10px;
    transition: 0.2s ease;
    font-weight: 500;
}

.sidebar a:hover {
    background: #2ed573;
    color: #07111f;
}

.container {
    margin-left: 240px;
    padding: 36px;
    min-height: 100vh;
    width: calc(100% - 240px);
}

.container h2,
h2 {
    color: #2ed573;
    text-align: center;
    margin-bottom: 10px;
    font-size: 36px;
}

h3 {
    color: #2ed573;
    text-align: center;
    margin-bottom: 16px;
}

.subtitle {
    text-align: center;
    color: #b7c6db;
    margin-bottom: 22px;
    font-size: 17px;
}

.center {
    text-align: center;
    margin-bottom: 18px;
}

.panel {
    background: #0d1b2f;
    border: 1px solid #1f314d;
    border-radius: 14px;
    padding: 22px;
    margin: 22px auto;
    max-width: 1150px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.form-panel {
    max-width: 720px;
}

.add-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 14px;
    align-items: center;
}

.add-form input,
.add-form select {
    width: 100%;
    padding: 13px 15px;
    border-radius: 10px;
    border: 1px solid #24364f;
    background: #f3f4f6;
    color: #111827;
    text-align: center;
    font-size: 15px;
    outline: none;
}

.add-form input:focus,
.add-form select:focus {
    border-color: #2ed573;
    box-shadow: 0 0 0 3px rgba(46, 213, 115, 0.15);
}

.add-form button {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 8px;
}

.filter-form,
form.center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-form input,
.filter-form select,
form.center input,
form.center select {
    width: 250px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #24364f;
    text-align: center;
    font-size: 15px;
    outline: none;
}

.filter-form button,
form.center button {
    background: #2ed573;
    color: #07111f;
    font-weight: 700;
    padding: 12px 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 900px;
    margin: 0 auto 22px auto;
}

.stat-card {
    background: #0d1b2f;
    border: 1px solid #1f314d;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.stat-card h4 {
    margin-bottom: 10px;
    color: #b7c6db;
    font-size: 16px;
}

.stat-card p {
    margin: 0;
    font-size: 30px;
    color: #2ed573;
    font-weight: 800;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #0d1b2f;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 16px;
}

table th {
    background: #2ed573;
    color: #07111f;
    padding: 14px;
    font-size: 16px;
    text-align: center;
}

table td {
    padding: 13px;
    text-align: center;
    border-bottom: 1px solid #22324b;
    color: #f3f4f6;
}

table tr:hover {
    background: #16263d;
}

.small-btn {
    margin: 5px;
}

@media (max-width: 900px) {
    .sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
    }

    .container {
        margin-left: 0;
        width: 100%;
        padding: 22px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .filter-form,
    form.center {
        flex-direction: column;
    }

    .filter-form input,
    .filter-form select,
    form.center input,
    form.center select {
        width: 90%;
        max-width: 320px;
    }

    .add-form {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 32px 22px;
    }

    .login-card h1 {
        font-size: 32px;
    }
}