:root {
    --primary: #007aff;
    --primary-soft: #e5f0ff;
    --background: #f5f5f7;
    --card-bg: #ffffff;
    --text-main: #111111;
    --text-muted: #6e6e73;
    --danger: #ff3b30;
    --success: #34c759;
    --warning: #ffcc00;
    --border-color: #e5e5ea;
    --radius-large: 20px;
    --radius-medium: 12px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--background);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, -apple-system-font, "Segoe UI", sans-serif;
    color: var(--text-main);
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    background-color: var(--card-bg);
    border-radius: 28px;
    padding: 32px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

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

label {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    outline: none;
    background-color: #fafafa;
    transition: all 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,122,255,0.15);
    background-color: #ffffff;
}

textarea {
    min-height: 80px;
    resize: vertical;
}

.btn {
    border-radius: 999px;
    border: none;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-secondary {
    background-color: #e5e5ea;
    color: #000000;
}

.btn-danger {
    background-color: var(--danger);
    color: #ffffff;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }

.alert {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 12px;
}

.alert-success {
    background-color: #e8f9ee;
    color: #227a3b;
}

.alert-danger {
    background-color: #fde8e8;
    color: #b3261e;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
}

.badge-success { background-color: #e8f9ee; color: #227a3b; }
.badge-warning { background-color: #fff7e0; color: #8a6d1b; }
.badge-danger { background-color: #fde8e8; color: #b3261e; }
.badge-info { background-color: #e5f0ff; color: #0046ae; }

.layout {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 260px;
    background-color: #ffffff;
    border-right: 1px solid var(--border-color);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 24px;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.sidebar-menu li {
    margin-bottom: 4px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-main);
}

.sidebar-menu a.active,
.sidebar-menu a:hover {
    background-color: var(--primary-soft);
    color: var(--primary);
}

.sidebar-footer {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 16px;
}

.main {
    flex: 1;
    padding: 20px 24px;
}

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

.main-title {
    font-size: 20px;
    font-weight: 700;
}

.main-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.card {
    background-color: var(--card-bg);
    border-radius: var(--radius-large);
    padding: 16px 16px 18px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.04);
}

.card-title {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.card-value {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.card-note {
    font-size: 12px;
    color: var(--text-muted);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table th,
.table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 12px;
}

.table tr:hover td {
    background-color: #fafafa;
}

