@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    background: #f9fafb;
    line-height: 1.5;
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: 0.2s;
}

a:hover {
    color: #1d4ed8;
}

/* Cards */
.card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f3f4f6;
    background: #f9fafb;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .625rem 1rem;
    border-radius: .5rem;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: .2s;
}

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

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

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

.btn-success {
    background: #16a34a;
    color: white;
}

.btn-success:hover {
    background: #15803d;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

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

.btn-warning {
    background: #eab308;
    color: white;
}

.btn-warning:hover {
    background: #ca8a04;
}

.btn-outline {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
}

.btn-outline:hover {
    background: #f9fafb;
}

.btn-sm {
    padding: .45rem .75rem;
    font-size: .75rem;
}

.btn-lg {
    padding: .85rem 1.5rem;
    font-size: 1rem;
}

.btn-icon {
    padding: .5rem;
}

/* Forms */
.form-label {
    display: block;
    font-size: .875rem;
    font-weight: 500;
    margin-bottom: .25rem;
    color: #374151;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: .625rem .75rem;
    border: 1px solid #d1d5db;
    border-radius: .5rem;
    font-size: .875rem;
    outline: none;
    transition: .2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,.2);
}

.form-textarea {
    resize: vertical;
}

.form-error {
    font-size: .75rem;
    color: #dc2626;
    margin-top: .25rem;
}

.form-hint {
    font-size: .75rem;
    color: #6b7280;
    margin-top: .25rem;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}

.table thead {
    background: #f9fafb;
    text-transform: uppercase;
    font-size: .75rem;
    color: #6b7280;
}

.table th,
.table td {
    padding: .875rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
}

.table tbody tr:hover {
    background: #f9fafb;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: .25rem .625rem;
    border-radius: 9999px;
    font-size: .75rem;
    font-weight: 500;
}

.badge-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-green {
    background: #dcfce7;
    color: #15803d;
}

.badge-red {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-yellow {
    background: #fef9c3;
    color: #a16207;
}

.badge-gray {
    background: #f3f4f6;
    color: #374151;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: .75rem;
    font-size: .875rem;
    border: 1px solid;
}

.alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.alert-warning {
    background: #fefce8;
    border-color: #fde68a;
    color: #854d0e;
}

.alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

/* Navigation */
.nav-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    border-radius: .5rem;
    color: #d1d5db;
    transition: .2s;
}

.nav-item:hover {
    background: #1f2937;
    color: white;
}

.nav-item.active {
    background: #2563eb;
    color: white;
}

/* Utilities */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.progress {
    width: 100%;
    height: .5rem;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #2563eb;
}

/* Print */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white;
        font-size: 11px;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}