* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    margin: 0;
    background: #f4f6f8;
    color: #2c3e50;
}

.navbar {
    background: #1f2d3d;
    color: #fff;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 20px;
    font-weight: 700;
}

.navbar-links a {
    color: #fff;
    margin-left: 18px;
    text-decoration: none;
}

.navbar-links a:hover {
    text-decoration: underline;
}

.navbar-user {
    margin-left: 18px;
    opacity: 0.8;
}

.container {
    max-width: 1100px;
    margin: 24px auto;
    padding: 0 16px;
}

.card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

h1, h2 {
    margin-top: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

table th, table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eaeef1;
    text-align: left;
    font-size: 14px;
}

table th {
    background: #f0f3f6;
    font-weight: 600;
}

table tr:hover {
    background: #fafbfc;
}

.btn {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    color: #fff;
}

.btn-primary { background: #2d6cdf; }
.btn-success { background: #2ecc71; }
.btn-warning { background: #f39c12; }
.btn-danger  { background: #e74c3c; }
.btn-secondary { background: #95a5a6; }

.btn + .btn { margin-left: 6px; }

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 13px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d4dbe1;
    border-radius: 5px;
    font-size: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}

.form-grid-full {
    grid-column: 1 / -1;
}

.text-danger { color: #e74c3c; font-size: 12px; }

.alert {
    padding: 10px 14px;
    border-radius: 5px;
    margin-bottom: 16px;
}

.alert-success {
    background: #d4f8e8;
    color: #1c7c4a;
}

.badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
}

.badge-active { background: #2ecc71; }
.badge-inactive { background: #95a5a6; }

.login-box {
    max-width: 360px;
    margin: 80px auto;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
