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

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    line-height: 1.4;
    font-size: 0.9rem;
}

.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 1650px) {
    .main-content {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
}

header {
    background: #1e293b;
    border-bottom: 2px solid #334155;
    padding: 1rem 2rem;
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

@media (max-width: 1650px) {
    .header-content {
        max-width: 95%;
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1f5f9;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 0.5rem;
    flex: 1;
}

.nav-link {
    padding: 0.4rem 0.75rem;
    background: #334155;
    border-radius: 6px;
    text-decoration: none;
    color: #e2e8f0;
    transition: background 0.2s;
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-link:hover {
    background: #475569;
}

.nav-link.active {
    background: #3b82f6;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    color: #f1f5f9;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: #334155;
    border-radius: 6px;
}

.btn-logout {
    padding: 0.5rem 1rem;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
    font-family: 'Lato', sans-serif;
}

.btn-logout:hover {
    background: #b91c1c;
}

footer {
    background: #1e293b;
    border-top: 2px solid #334155;
    padding: 1.5rem 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

@media (max-width: 1650px) {
    .footer-content {
        max-width: 95%;
    }
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Lato', sans-serif;
}

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

.btn-primary:hover {
    background: #2563eb;
}

.btn-primary:disabled {
    background: #475569;
    cursor: not-allowed;
}

.btn-secondary {
    background: #334155;
    color: #e2e8f0;
}

.btn-secondary:hover {
    background: #475569;
}

.message-alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: none;
}

.message-alert.success {
    background: #1e4d3a;
    color: #34d399;
    border: 1px solid #34d399;
}

.message-alert.error {
    background: #4d1e1e;
    color: #f87171;
    border: 1px solid #f87171;
}

.message-alert.show {
    display: block;
}

table {
    width: 100%;
    background: #1e293b;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 0 auto;
}

@media (max-width: 768px) {
    table {
        font-size: 0.75rem;
    }

    th, td {
        padding: 0.4rem 0.5rem;
    }
}

thead {
    background: #334155;
}

th {
    padding: 0.5rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #f1f5f9;
    border-bottom: 2px solid #475569;
    font-size: 0.85rem;
}

td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #334155;
    font-size: 0.85rem;
}

tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: #334155;
}

.empty {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}