* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #1a1a2e;
    color: #eee;
    min-height: 100vh;
}

/* NAV */
nav {
    background: #16213e;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #0f3460;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-brand {
    font-size: 1.4rem;
    font-weight: bold;
    color: #e94560;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: #aaa;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-links a:hover {
    background: #0f3460;
    color: white;
}

.btn-logout {
    background: #e94560 !important;
    color: white !important;
}

.btn-logout:hover {
    background: #c73652 !important;
}

/* CONTAINER */
.container {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px;
}

/* CARD */
.card {
    background: #16213e;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #0f3460;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.card h2 {
    color: #e94560;
    margin-bottom: 16px;
    font-size: 1.2rem;
}

/* FLASH */
.flash {
    background: #0f3460;
    border-left: 4px solid #e94560;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    color: #eee;
}

/* PROGRESS */
.progress-wrap {
    margin: 12px 0;
}

.progress-label {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 6px;
}

.progress {
    background: #0f3460;
    border-radius: 20px;
    height: 12px;
    overflow: hidden;
}

.progress-bar {
    height: 12px;
    border-radius: 20px;
    background: linear-gradient(90deg, #e94560, #0f3460);
    transition: width 0.4s;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: #e94560;
    color: white;
}

.btn-primary:hover {
    background: #c73652;
}

.btn-danger {
    background: #cc0000;
    color: white;
    padding: 4px 12px;
    font-size: 0.8rem;
}

.btn-danger:hover {
    background: #aa0000;
}

.btn-secondary {
    background: #0f3460;
    color: #eee;
}

.btn-secondary:hover {
    background: #1a4a7a;
}

/* INPUTS */
input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"] {
    background: #0f3460;
    border: 1px solid #1a4a7a;
    color: #eee;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.95rem;
    width: 100%;
    margin-bottom: 12px;
    transition: border 0.2s;
}

input:focus {
    outline: none;
    border-color: #e94560;
}

label {
    display: block;
    color: #aaa;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

/* TABLE */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

th {
    background: #0f3460;
    padding: 12px;
    text-align: left;
    color: #aaa;
    font-size: 0.85rem;
    text-transform: uppercase;
}

td {
    padding: 12px;
    border-bottom: 1px solid #0f3460;
    color: #ddd;
}

tr:hover td {
    background: #1a2a4a;
}

td a {
    color: #e94560;
    text-decoration: none;
}

td a:hover {
    text-decoration: underline;
}

/* UPLOAD ZONE */
.upload-zone {
    border: 2px dashed #0f3460;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-bottom: 16px;
    transition: border 0.2s;
    cursor: pointer;
}

.upload-zone:hover {
    border-color: #e94560;
}

.upload-zone p {
    color: #aaa;
    margin-bottom: 12px;
}

/* LOGIN PAGE */
.login-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    height: 100vh;
    overflow: hidden;
}

.login-card {
    background: #16213e;
    border-radius: 16px;
    padding: 40px;
    width: 360px;
    border: 1px solid #0f3460;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.login-card h1 {
    text-align: center;
    color: #e94560;
    margin-bottom: 8px;
    font-size: 2rem;
}

.login-card p {
    text-align: center;
    color: #aaa;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

/* CHECKBOX */
.checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #aaa;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #e94560;
}

/* STATS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #0f3460;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e94560;
}

.stat-label {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 4px;
}

@media (max-width: 600px) {
    nav {
        flex-direction: column;
        gap: 10px;
        padding: 12px 16px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .container {
        padding: 0 12px;
        margin: 16px auto;
    }

    .card {
        padding: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 0.8rem;
    }

    th, td {
        padding: 8px 6px;
    }

    .login-card {
        width: 100%;
        padding: 24px 16px;
    }

    input[type="text"],
    input[type="password"],
    input[type="number"] {
        font-size: 16px;
    }
}
