/* assets/css/style.css */
:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --bg-light: #f8fafc;
    --text-main: #334155;
    --text-muted: #64748b;
    --white: #ffffff;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --border: #e2e8f0;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --font: 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background-color: var(--bg-light); color: var(--text-main); line-height: 1.5; }

.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-container { width: 100%; max-width: 400px; padding: 2rem; }
.login-header { text-align: center; margin-bottom: 2rem; }
.login-header h2 { color: var(--primary); font-weight: 700; }

.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.card-header { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.card-body { padding: 1.5rem; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.5rem; font-size: 0.9rem; }
.form-control { width: 100%; padding: 0.75rem; border: 1px solid var(--border); border-radius: 4px; font-family: inherit; font-size: 1rem; transition: border-color 0.2s; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,165,233,0.2); }

.btn { display: inline-block; padding: 0.75rem 1.5rem; font-weight: 600; text-align: center; border-radius: 4px; cursor: pointer; transition: all 0.2s; border: none; font-size: 1rem; text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-success { background: var(--success); color: var(--white); }
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.875rem; }
.w-100 { width: 100%; }

.alert { padding: 1rem; border-radius: 4px; margin-bottom: 1rem; }
.alert-danger { background: #fef2f2; color: #b91c1c; border: 1px solid #f87171; }
.alert-success { background: #ecfdf5; color: #047857; border: 1px solid #34d399; }

/* Layout for Dashboards */
.app-container { display: flex; flex-direction: column; min-height: 100vh; }
.navbar { background: var(--white); padding: 1rem 2rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 10; }
.navbar-brand { font-weight: 700; color: var(--primary); font-size: 1.25rem; text-decoration: none; }
.navbar-menu a { color: var(--text-main); text-decoration: none; margin-left: 1rem; font-weight: 500; }
.navbar-menu a:hover { color: var(--primary); }

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

/* Grid System */
.grid { display: grid; gap: 1.5rem; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) {
    .grid-cols-2, .grid-cols-3 { grid-template-columns: 1fr; }
}

/* Tables */
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
th { background: #f1f5f9; font-weight: 600; color: var(--text-main); }
tr:hover { background: #f8fafc; }

/* Utilities */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
