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

:root {
    --primary-color: #0d6efd;
    --sidebar-bg: #1e293b;
    --body-bg: #f1f5f9;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
}

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--body-bg);
    color: var(--text-primary);
    font-size: 0.875rem;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-primary);
}

.navbar {
    background: linear-gradient(135deg, var(--sidebar-bg) 0%, #334155 100%) !important;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem;
    transition: background-color 0.15s;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.nav-link i {
    margin-right: 0.375rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

.table {
    font-size: 0.8125rem;
    margin-bottom: 0;
}

.table thead th {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    background: #f8fafc;
}

.table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr {
    transition: background-color 0.15s;
}

.table tbody tr:hover {
    background-color: #f8fafc;
}

.table-dark th {
    background: var(--sidebar-bg) !important;
    color: #fff;
    font-weight: 500;
}

.badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.375em 0.625em;
    border-radius: 0.375rem;
    letter-spacing: 0.025em;
}

.btn {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.15s;
}

.btn-sm {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

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

.btn-primary:hover {
    background: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.3);
}

.form-control, .form-select {
    font-size: 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    padding: 0.625rem 0.875rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.form-control-sm, .form-select-sm {
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
}

.form-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
}

.alert {
    font-size: 0.875rem;
    border-radius: 0.5rem;
    border: none;
}

.modal-content {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
}

.modal-title {
    font-size: 1rem;
    font-weight: 600;
}

.modal-body {
    padding: 1.25rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
}

.pagination .page-link {
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 0.375rem;
    margin: 0 0.125rem;
}

.text-muted {
    color: var(--text-secondary) !important;
    font-size: 0.8125rem;
}

pre {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.75rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 0.375rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-card p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

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

.page-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.container-fluid {
    padding: 1.5rem;
}
