* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a2e;
    color: #e0e0e0;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

h1, h2, h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #888;
    margin-bottom: 1.5rem;
}

.hidden {
    display: none !important;
}

/* Navbar */
.navbar {
    background: #16213e;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #2a2a4a;
}

.nav-title {
    font-weight: 600;
    color: #fff;
    margin-right: auto;
}

.nav-link {
    color: #8ab4f8;
    text-decoration: none;
}

.nav-link:hover {
    text-decoration: underline;
}

#user-info {
    color: #888;
    font-size: 0.875rem;
}

/* Sections */
.section {
    background: #16213e;
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    background: #3a3a5c;
    color: #e0e0e0;
    transition: background 0.2s;
}

.btn:hover {
    background: #4a4a6c;
}

.btn-small {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
}

.btn-success {
    background: #2e7d32;
    color: #fff;
}

.btn-success:hover {
    background: #1b5e20;
}

.btn-danger {
    background: #c62828;
    color: #fff;
}

.btn-danger:hover {
    background: #b71c1c;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #2a2a4a;
}

th {
    background: #0f3460;
    color: #8ab4f8;
    font-size: 0.8rem;
    text-transform: uppercase;
}

td {
    font-size: 0.875rem;
}

tr:hover {
    background: #1e2a4a;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #1a1a2e;
    border: 1px solid #3a3a5c;
    border-radius: 8px;
    padding: 1.5rem;
    width: 90%;
    max-width: 400px;
}

.modal-content h3 {
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    color: #ccc;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #3a3a5c;
    border-radius: 4px;
    background: #0f3460;
    color: #e0e0e0;
    font-size: 0.875rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Error */
.error {
    background: #3e1111;
    border: 1px solid #c62828;
    color: #ff8a80;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}
