* { box-sizing: border-box; font-family: 'Segoe UI', Arial, sans-serif; }
body { margin: 0; background: #f5f7fa; color: #222; min-height: 100vh; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: linear-gradient(90deg, #1f2937 0%, #111827 100%); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.brand { font-weight: bold; font-size: 18px; }
.layout { display: flex; min-height: calc(100vh - 52px); }
.sidebar { width: 200px; background: #111827; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.sidebar-user { color: #e2e8f0; font-size: 13px; padding: 8px 10px; background: rgba(31, 41, 55, 0.8); border-radius: 6px; margin-bottom: 10px; border-left: 3px solid #1e3a7a; }
.sidebar a { color: #cbd5e1; text-decoration: none; padding: 10px 12px; border-radius: 6px; transition: all 0.3s ease; }
.sidebar a:hover { background: #1e3a7a; color: #fff; transform: translateX(4px); }
.content { flex: 1; padding: 20px; }
.card { background: #fff; padding: 24px; border-radius: 12px; margin-bottom: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: box-shadow 0.3s ease; }
.card:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.card-header { margin-bottom: 24px; border-bottom: 2px solid #f5f7fa; padding-bottom: 16px; }
.card-title { margin: 0 0 8px 0; font-size: 24px; color: #1f2937; }
.card-subtitle { margin: 0; font-size: 13px; color: #64748b; }
.hc-container { max-width: 1200px; }
.hc-header { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid #d1d5db; }
.hc-title { margin: 0 0 8px 0; font-size: 24px; color: #1a3a7a; font-weight: 700; }
.hc-subtitle { margin: 0; font-size: 13px; color: #64748b; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.section { background: #f5f7fa; border: 1px solid #cbd5e1; border-radius: 8px; padding: 20px; margin-bottom: 20px; transition: all 0.3s ease; }
.section:hover { border-color: #a7f3d0; box-shadow: 0 4px 12px rgba(4, 138, 90, 0.1); }
.section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid #cbd5e1; }
.section-icon { font-size: 24px; display: flex; align-items: center; }
.section-title { margin: 0; font-weight: 700; color: #0f172a; font-size: 16px; }
.section-desc { margin: 0 0 0 auto; font-size: 12px; color: #64748b; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; }
.full-width { grid-column: 1 / -1; }
.inline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; }
label { font-weight: 600; color: #334155; font-size: 14px; display: block; margin-bottom: 4px; }
input, select { width: 100%; padding: 10px 12px; border-radius: 8px; border: 2px solid #e2e8f0; background: #fff; font-size: 14px; transition: all 0.3s ease; }
input:focus, select:focus { outline: none; border-color: #1e3a7a; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); background: #ffffff; }
input[readonly] { background: #f1f5f9; color: #64748b; cursor: not-allowed; border-color: #cbd5e1; }
input[type="checkbox"] { width: auto; margin-right: 6px; cursor: pointer; }
input[type="checkbox"] + label { display: inline; margin-bottom: 0; font-weight: 500; }
button, .button { background: #1e3a7a; color: #fff; border: none; padding: 8px 12px; border-radius: 6px; cursor: pointer; text-decoration: none; display: inline-block; font-weight: 600; transition: all 0.3s ease; }
button:hover, .button:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3); }
.btn-primary { background: #1a3a7a; padding: 12px 24px; font-size: 15px; border-radius: 6px; font-weight: 600; transition: all 0.3s ease; border: none; color: #fff; cursor: pointer; }
.btn-primary:hover { background: #143366; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(4, 138, 90, 0.2); }
.btn-secondary { background: #6b7280; padding: 12px 24px; font-size: 15px; border-radius: 8px; margin-left: 8px; font-weight: 600; transition: all 0.3s ease; color: #fff; text-decoration: none; }
.btn-secondary:hover { background: #4b5563; transform: translateY(-2px); box-shadow: 0 6px 12px rgba(75, 85, 99, 0.4); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.button-group { display: flex; gap: 12px; margin-top: 24px; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; border-left: 4px solid; font-size: 14px; }
.alert.error { background: #fef2f2; color: #991b1b; border-left-color: #dc2626; }
.alert.success { background: #f5f7fa; color: #166534; border-left-color: #22c55e; }
.table, table { width: 100%; border-collapse: collapse; margin-top: 12px; }
th, td { border-bottom: 1px solid #e5e7eb; padding: 12px; text-align: left; font-size: 14px; }
th { background: #f9fafb; font-weight: 600; color: #374151; }
tr:hover { background: #f9fafb; }
pre { background: #0f172a; color: #e2e8f0; padding: 14px; border-radius: 8px; overflow: auto; white-space: pre-wrap; word-break: break-word; font-size: 13px; }
.dashboard-container { max-width: 1200px; margin: 0 auto; padding: 24px 0; }
.dashboard-header { margin-bottom: 24px; padding: 24px; background: #1a3a7a; border-radius: 8px; color: #fff; box-shadow: 0 2px 8px rgba(4, 138, 90, 0.15); }
.header-content { }
.dashboard-title { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.dashboard-subtitle { margin: 10px 0 0 0; font-size: 14px; color: rgba(255,255,255,0.95); font-weight: 400; }
.filter-header { margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.filter-header h2 { margin: 0; font-size: 16px; color: #1f2937; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.filter-form { padding: 20px 0; }
.filter-group { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: flex-end; }
.filter-group > div { display: flex; flex-direction: column; }
.filter-group label { font-weight: 600; color: #1f2937; font-size: 13px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.3px; }
.filter-group input { padding: 11px 13px; border: 2px solid #d1d5db; border-radius: 8px; font-size: 13px; transition: all 0.3s ease; }
.filter-group input:focus { outline: none; border-color: #1a3a7a; box-shadow: 0 0 0 3px rgba(4, 138, 90, 0.1); background: #f5f7fa; }
.filter-action { display: flex; align-items: center; }
.btn-filter { background: #1a3a7a; color: #fff; border: none; padding: 11px 24px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 13px; transition: all 0.3s ease; box-shadow: 0 2px 4px rgba(4, 138, 90, 0.15); text-transform: uppercase; letter-spacing: 0.5px; }
.btn-filter:hover { transform: translateY(-2px); background: #143366; box-shadow: 0 4px 8px rgba(4, 138, 90, 0.2); }
.btn-filter:active { transform: translateY(0); }

.stats-section { margin: 30px 0; }
.section-heading { font-size: 18px; font-weight: 700; color: #1f2937; margin-bottom: 24px; display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.3px; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.stat-card { background: #fff; border-radius: 12px; padding: 18px; display: flex; align-items: center; gap: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: all 0.3s ease; border-left: 4px solid #cbd5e1; }
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0,0,0,0.12); }
.stat-today { border-left-color: #f59e0b; }
.stat-total { border-left-color: #1a3a7a; }
.stat-pass { border-left-color: #1e3a7a; }
.stat-followup { border-left-color: #f97316; }
.stat-fail { border-left-color: #ef4444; }
.stat-icon { font-size: 28px; }
.stat-content { flex: 1; }
.stat-label { font-size: 12px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.stat-value { font-size: 28px; font-weight: 700; color: #1a3a7a; margin: 4px 0; }
.stat-detail { font-size: 12px; color: #94a3b8; }

.chart-header { margin-bottom: 20px; }
.chart-header h2 { margin: 0 0 6px 0; font-size: 18px; font-weight: 700; color: #1f2937; text-transform: uppercase; letter-spacing: 0.3px; }
.chart-subtitle { margin: 0; font-size: 13px; color: #64748b; }
.chart-container { padding: 20px 0; }
.chart-bar { margin-bottom: 20px; }
.bar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.bar-label { font-weight: 700; color: #1f2937; font-size: 13px; text-transform: uppercase; letter-spacing: 0.3px; }
.bar-percentage { font-weight: 700; color: #1a3a7a; font-size: 13px; }
.progress-bar { width: 100%; height: 28px; background: #e5e7eb; border-radius: 14px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 14px; transition: width 0.3s ease; }
.progress-fill.pass { background: #1e3a7a; }
.progress-fill.followup { background: #f97316; }
.progress-fill.fail { background: #ef4444; }

.nationality-chart { padding: 16px 0; }
.nationality-item { display: grid; grid-template-columns: 40px 120px 1fr 50px; gap: 16px; align-items: center; padding: 14px; background: #f5f7fa; border-radius: 8px; margin-bottom: 12px; transition: all 0.3s ease; border-left: 4px solid #1a3a7a; }
.nationality-item:hover { background: #eff6ff; transform: translateX(4px); }
.item-rank { font-size: 18px; text-align: center; }
.item-info { }
.item-country { font-weight: 700; color: #1f2937; font-size: 14px; }
.item-stats { font-size: 12px; color: #1a3a7a; margin-top: 2px; font-weight: 600; }
.item-bar { position: relative; }
.bar-fill { height: 20px; background: #1a3a7a; border-radius: 4px; transition: width 0.3s ease; }
.item-percentage { text-align: right; font-weight: 700; color: #1a3a7a; font-size: 13px; }
.empty { padding: 40px; text-align: center; color: #94a3b8; }
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-text { font-size: 14px; }

@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .filter-group { grid-template-columns: 1fr; }
  .nationality-item { grid-template-columns: 30px 100px 1fr 40px; }
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-header { margin-bottom: 20px; }
  .dashboard-title { font-size: 22px; }
  .nationality-item { grid-template-columns: 1fr; gap: 8px; }
  .bar-header { flex-direction: column; align-items: flex-start; }
  .item-percentage { text-align: left; }
}
.empty { padding: 16px; color: #64748b; text-align: center; background: #f9fafb; border-radius: 8px; }
.logout button { background: #ef4444; }
.logout button:hover { background: #dc2626; }

.reports-container { max-width: 1200px; margin: 0 auto; padding: 24px 0; }
.reports-header { margin-bottom: 24px; padding: 24px; background: #1a3a7a; border-radius: 8px; color: #fff; }
.reports-header-medical { margin-bottom: 24px; padding: 24px; background: #1a3a7a; border-radius: 8px; color: #fff; box-shadow: 0 2px 8px rgba(4, 138, 90, 0.15); }
.report-header-content { }
.reports-header-medical { margin-bottom: 24px; padding: 24px; background: #1a3a7a; border-radius: 8px; color: #fff; box-shadow: 0 2px 8px rgba(4, 138, 90, 0.15); }
.report-header-content { }
.reports-title { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.reports-subtitle { margin: 10px 0 0 0; font-size: 14px; color: rgba(255,255,255,0.95); font-weight: 400; }
.reports-form { padding: 20px 0; }
.form-grid-reports { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-weight: 600; color: #1f2937; font-size: 13px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.3px; }
.form-group input, .form-group select { padding: 11px 13px; border: 2px solid #d1d5db; border-radius: 8px; font-size: 13px; transition: all 0.3s ease; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: #1a3a7a; box-shadow: 0 0 0 3px rgba(4, 138, 90, 0.1); background: #f5f7fa; }
.form-actions { display: flex; gap: 10px; }
.btn-search { background: #1a3a7a; color: #fff; border: none; padding: 11px 24px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 13px; transition: all 0.3s ease; box-shadow: 0 2px 4px rgba(4, 138, 90, 0.15); text-transform: uppercase; letter-spacing: 0.5px; }
.btn-search:hover { transform: translateY(-2px); background: #143366; box-shadow: 0 4px 8px rgba(4, 138, 90, 0.2); }
.btn-export { background: #1a3a7a; color: #fff; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 14px; text-decoration: none; display: inline-block; transition: all 0.3s ease; }
.btn-export:hover { transform: translateY(-2px); background: #143366; box-shadow: 0 4px 8px rgba(4, 138, 90, 0.2); }

.summary-card { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px; }
.summary-item { background: #fff; padding: 14px; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.06); border-left: 4px solid #1a3a7a; display: flex; justify-content: space-between; align-items: center; }
.summary-label { font-size: 13px; color: #64748b; font-weight: 500; }
.summary-value { font-size: 16px; font-weight: 700; color: #1a3a7a; }

.table-header { margin-bottom: 24px; }
.table-header h2 { margin: 0 0 6px 0; font-size: 18px; font-weight: 700; color: #1f2937; }
.table-subtitle { margin: 0; font-size: 13px; color: #64748b; }
.table-wrapper { overflow-x: auto; }
.reports-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.reports-table thead { background: #f5f7fa; }
.reports-table th { padding: 14px; text-align: left; font-weight: 700; color: #1f2937; font-size: 13px; border-bottom: 2px solid #1a3a7a; text-transform: uppercase; letter-spacing: 0.3px; }
.reports-table td { padding: 12px 14px; border-bottom: 1px solid #e5e7eb; font-size: 13px; }
.reports-table tbody tr:hover { background: #f9fafb; }
.align-center { text-align: center; }
.badge { display: inline-block; background: #f5f7fa; color: #1f2937; padding: 4px 8px; border-radius: 4px; font-weight: 600; }
.name-cell { }
.name-cell strong { display: block; color: #1f2937; font-weight: 600; }
.sub-text { color: #94a3b8; font-size: 12px; margin-top: 2px; }
.flag { display: inline-block; background: #fef3c7; color: #92400e; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.status { display: inline-block; padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.status-pass { background: #d1d5db; color: #1a2a22; }
.status-followup { background: #fed7aa; color: #92400e; }
.status-fail { background: #fee2e2; color: #991b1b; }
.btn-download { display: inline-block; width: 28px; height: 28px; line-height: 28px; text-align: center; border-radius: 6px; background: #f3f4f6; color: #1f2937; text-decoration: none; font-size: 16px; transition: all 0.3s ease; margin: 0 auto; }
.btn-download:hover { background: #e5e7eb; transform: scale(1.1); }
.text-disabled { color: #cbd5e1; }
.api-status { font-size: 11px; }
.api-code { color: #7c3aed; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.empty-state { text-align: center; padding: 40px; }
.empty-icon { font-size: 48px; margin-bottom: 12px; display: block; }
.empty-text { margin: 0; font-size: 16px; font-weight: 600; color: #1f2937; }
.empty-hint { margin: 6px 0 0 0; font-size: 13px; color: #94a3b8; }

.pagination-card { }
.pagination-controls { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.pagination-info { font-weight: 600; color: #1f2937; }
.pagination-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-page { background: #f3f4f6; color: #1f2937; border: none; padding: 8px 14px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 13px; text-decoration: none; transition: all 0.3s ease; }
.btn-page:hover { background: #e5e7eb; transform: translateY(-1px); }


.logs-container { max-width: 1200px; margin: 0 auto; padding: 24px 0; }
.logs-header { margin-bottom: 24px; padding: 24px; background: #1a3a7a; border-radius: 8px; color: #fff; box-shadow: 0 2px 8px rgba(4, 138, 90, 0.15); }
.header-content { }
.logs-title { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.logs-subtitle { margin: 10px 0 0 0; font-size: 14px; color: rgba(255,255,255,0.95); font-weight: 400; }
.logs-form { padding: 20px 0; }
.form-grid-logs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-weight: 600; color: #1f2937; font-size: 13px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group select { padding: 11px 13px; border: 2px solid #d1d5db; border-radius: 8px; font-size: 13px; background: #fff; color: #1f2937; transition: all 0.3s ease; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: #1a3a7a; box-shadow: 0 0 0 3px rgba(4, 138, 90, 0.1); background: #f5f7fa; }
.form-actions { display: flex; gap: 10px; }
.btn-search-logs { background: #1a3a7a; color: #fff; border: none; padding: 11px 24px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13px; transition: all 0.3s ease; box-shadow: 0 2px 6px rgba(4, 138, 90, 0.2); text-transform: uppercase; letter-spacing: 0.5px; }
.btn-search-logs:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(4, 138, 90, 0.3); }
.btn-search-logs:active { transform: translateY(0); }

.summary-card { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px; }
.summary-item { background: #fff; padding: 16px; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.06); border-left: 4px solid #1a3a7a; display: flex; align-items: center; gap: 12px; }
.summary-icon { font-size: 24px; }
.summary-label { font-size: 12px; color: #64748b; font-weight: 500; text-transform: uppercase; letter-spacing: 0.3px; }
.summary-value { font-size: 18px; font-weight: 700; color: #1a3a7a; }

.table-header { margin-bottom: 24px; }
.table-header h2 { margin: 0 0 6px 0; font-size: 18px; font-weight: 700; color: #1f2937; }
.table-subtitle { margin: 0; font-size: 13px; color: #64748b; }
.table-wrapper { overflow-x: auto; }
.logs-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.logs-table thead { background: #f5f7fa; }
.logs-table th { padding: 14px; text-align: left; font-weight: 700; color: #1f2937; font-size: 12px; border-bottom: 2px solid #1a3a7a; text-transform: uppercase; letter-spacing: 0.3px; }
.logs-table td { padding: 13px 14px; border-bottom: 1px solid #e5e7eb; font-size: 13px; }
.logs-table tbody tr { transition: all 0.2s ease; }
.logs-table tbody tr:hover { background: #f5f7fa; }
.row-number { text-align: center; color: #64748b; font-weight: 600; width: 40px; }
.datetime-cell { }
.date-display { color: #1f2937; font-weight: 600; }
.time-display { color: #64748b; font-size: 12px; margin-top: 2px; }
.badge-alien-id { display: inline-block; background: #d1d5db; color: #1a2a22; padding: 5px 10px; border-radius: 6px; font-weight: 600; border-left: 3px solid #1a3a7a; }
.code-display { display: inline-block; background: #f3f4f6; color: #1f2937; padding: 5px 10px; border-radius: 6px; font-weight: 600; font-family: 'Courier New', monospace; }
.status-badge { display: inline-block; padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.status-success { background: #dcfce7; color: #15803d; }
.status-warning { background: #fed7aa; color: #b45309; }
.status-error { background: #fee2e2; color: #b91c1c; }
.status-pending { background: #cbd5e1; color: #0c4a6e; }
.action-cell { text-align: center; }
.btn-view-detail { display: inline-block; width: 32px; height: 32px; line-height: 32px; text-align: center; border-radius: 6px; background: #1a3a7a; color: #fff; text-decoration: none; font-size: 14px; transition: all 0.3s ease; font-weight: 600; }
.btn-view-detail:hover { background: #143366; transform: scale(1.1); box-shadow: 0 4px 8px rgba(4, 138, 90, 0.3); }

.empty-state { text-align: center; padding: 50px 20px; }
.empty-icon { font-size: 56px; margin-bottom: 16px; display: block; opacity: 0.6; }
.empty-text { margin: 0; font-size: 16px; font-weight: 600; color: #1f2937; }
.empty-hint { margin: 8px 0 0 0; font-size: 13px; color: #94a3b8; }

.pagination-card { }
.pagination-controls { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.pagination-info { font-weight: 600; color: #1f2937; font-size: 14px; }
.pagination-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-page { background: #fff; color: #1a3a7a; border: 2px solid #1a3a7a; padding: 9px 16px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 13px; text-decoration: none; transition: all 0.3s ease; }
.btn-page:hover { background: #1a3a7a; color: #fff; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(4, 138, 90, 0.2); }

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .filter-group { grid-template-columns: 1fr; }
  .nationality-item { grid-template-columns: 30px 100px 1fr 40px; }
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-header { margin-bottom: 20px; }
  .dashboard-title { font-size: 22px; }
  .nationality-item { grid-template-columns: 1fr; gap: 8px; }
  .bar-header { flex-direction: column; align-items: flex-start; }
  .item-percentage { text-align: left; }
  .filter-group { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .form-grid-logs { grid-template-columns: 1fr; }
  .summary-card { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; }
  .btn-search-logs { width: 100%; }
  .logs-table { font-size: 12px; }
  .logs-table th, .logs-table td { padding: 10px 8px; }
  .pagination-buttons { width: 100%; flex-direction: column; }
  .btn-page { width: 100%; }
  .logs-title { font-size: 24px; }
}

/* Settings Page Styles */
.settings-container { max-width: 1200px; margin: 0 auto; padding: 24px 0; }
.settings-header { margin-bottom: 24px; padding: 24px; background: #1a3a7a; border-radius: 8px; color: #fff; box-shadow: 0 2px 8px rgba(4, 138, 90, 0.15); }
.settings-title { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.settings-subtitle { margin: 10px 0 0 0; font-size: 14px; color: rgba(255,255,255,0.95); font-weight: 400; }
.settings-form { padding: 20px 0; }
.form-section { margin-bottom: 28px; padding: 20px; background: #f5f7fa; border-left: 4px solid #1a3a7a; border-radius: 8px; }
.section-subtitle { font-size: 16px; font-weight: 700; color: #1f2937; margin: 0 0 16px 0; text-transform: uppercase; letter-spacing: 0.3px; }
.form-grid-settings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid-settings .full-width { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 12px; margin-top: 24px; }
.btn-save { background: #1a3a7a; color: #fff; border: none; padding: 12px 28px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 14px; transition: all 0.3s ease; box-shadow: 0 2px 6px rgba(4, 138, 90, 0.2); text-transform: uppercase; letter-spacing: 0.5px; }
.btn-save:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(4, 138, 90, 0.3); }

/* Search Page Styles */
.search-container { max-width: 1200px; margin: 0 auto; padding: 24px 0; }
.search-header { margin-bottom: 24px; padding: 24px; background: #1a3a7a; border-radius: 8px; color: #fff; box-shadow: 0 2px 8px rgba(4, 138, 90, 0.15); }
.search-title { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.search-subtitle { margin: 10px 0 0 0; font-size: 14px; color: rgba(255,255,255,0.95); font-weight: 400; }
.search-form { padding: 24px 0; }
.form-grid-search { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.result-header { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid #1a3a7a; }
.result-header h2 { margin: 0; font-size: 16px; font-weight: 700; color: #1f2937; text-transform: uppercase; letter-spacing: 0.3px; }
.result-info { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; padding: 20px; background: #f5f7fa; border-radius: 8px; border-left: 4px solid #1a3a7a; }
.info-item { display: flex; justify-content: flex-start; align-items: flex-start; gap: 16px; padding: 0; }
.info-label { font-weight: 700; color: #1a3a7a; font-size: 13px; text-transform: none; letter-spacing: 0px; min-width: 130px; flex-shrink: 0; }
.info-value { color: #1f2937; font-size: 14px; font-weight: 500; flex: 1; }
.badge-id { background: #d1d5db; color: #1a2a22; padding: 4px 8px; border-radius: 4px; font-weight: 600; font-size: 12px; border-left: 2px solid #1a3a7a; }
.btn-action { background: #1a3a7a; color: #fff; padding: 8px 16px; border-radius: 6px; text-decoration: none; font-size: 12px; font-weight: 600; transition: all 0.3s ease; box-shadow: 0 2px 4px rgba(4, 138, 90, 0.2); }
.btn-action:hover { transform: translateY(-2px); background: #143366; box-shadow: 0 4px 8px rgba(4, 138, 90, 0.3); }
.search-table { width: 100%; border-collapse: collapse; }
.search-table thead { background: #f5f7fa; }
.search-table th { padding: 12px; text-align: left; font-weight: 700; color: #1f2937; font-size: 13px; border-bottom: 2px solid #1a3a7a; text-transform: uppercase; letter-spacing: 0.3px; }
.search-table td { padding: 12px; border-bottom: 1px solid #e5e7eb; font-size: 13px; }
.search-table tbody tr:hover { background: #f5f7fa; }

/* Users Page Styles */
.users-container { max-width: 1200px; margin: 0 auto; padding: 24px 0; }
.users-header { margin-bottom: 24px; padding: 24px; background: #1a3a7a; border-radius: 8px; color: #fff; box-shadow: 0 2px 8px rgba(4, 138, 90, 0.15); }
.users-title { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.users-subtitle { margin: 10px 0 0 0; font-size: 14px; color: rgba(255,255,255,0.95); font-weight: 400; }
.users-form { padding: 16px 0; }
.form-grid-users { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.user-badge { background: #d1d5db; color: #1a2a22; padding: 6px 12px; border-radius: 6px; font-weight: 600; font-size: 12px; border-left: 3px solid #1a3a7a; }
.role-badge { display: inline-block; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.role-admin { background: #fef2f2; color: #991b1b; border-left: 3px solid #ef4444; }
.role-staff { background: #f5f7fa; color: #1a2a22; border-left: 3px solid #1a3a7a; }
.role-doctor { background: #f0f9ff; color: #0c4a6e; border-left: 3px solid #0369a1; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form select { padding: 6px 8px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 12px; }
.inline-form input { padding: 6px 8px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 12px; }
.btn-inline-action { background: #1a3a7a; color: #fff; border: none; padding: 6px 12px; border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 11px; transition: all 0.3s ease; }
.btn-inline-action:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(4, 138, 90, 0.2); }
.btn-delete { background: #ef4444; color: #fff; border: none; padding: 6px 12px; border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 11px; transition: all 0.3s ease; }
.btn-delete:hover { background: #dc2626; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2); }
.row-number { color: #94a3b8; font-weight: 600; }
.btn-create { background: #1a3a7a; color: #fff; border: none; padding: 11px 24px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13px; transition: all 0.3s ease; box-shadow: 0 2px 6px rgba(4, 138, 90, 0.2); text-transform: uppercase; letter-spacing: 0.5px; }
.btn-create:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(4, 138, 90, 0.3); }
.users-table { width: 100%; border-collapse: collapse; }
.users-table thead { background: #f5f7fa; }
.users-table th { padding: 12px; text-align: left; font-weight: 700; color: #1f2937; font-size: 13px; border-bottom: 2px solid #1a3a7a; text-transform: uppercase; letter-spacing: 0.3px; }
.users-table td { padding: 12px; border-bottom: 1px solid #e5e7eb; font-size: 13px; }
.users-table tbody tr:hover { background: #f5f7fa; }
.empty-state { padding: 40px 20px; text-align: center; color: #94a3b8; }
.empty-icon { font-size: 48px; margin-bottom: 12px; display: block; opacity: 0.6; }
.empty-text { font-size: 16px; font-weight: 600; color: #1f2937; margin-bottom: 8px; }
.empty-hint { font-size: 13px; color: #64748b; }

@media (max-width: 1024px) {
  .form-grid-settings { grid-template-columns: 1fr; }
  .form-grid-search { grid-template-columns: repeat(2, 1fr); }
  .form-grid-users { grid-template-columns: repeat(2, 1fr); }
  .result-info { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .form-grid-settings { grid-template-columns: 1fr; }
  .form-grid-search { grid-template-columns: 1fr; }
  .form-grid-users { grid-template-columns: 1fr; }
  .result-info { grid-template-columns: 1fr; }
  .search-title, .settings-title, .users-title { font-size: 22px; }
  .inline-form { flex-direction: column; }
}

/* Login Page Styles */
.login-container { max-width: 500px; margin: 40px auto; padding: 20px; }
.login-header { margin-bottom: 24px; padding: 24px; background: #1a3a7a; border-radius: 8px; color: #fff; box-shadow: 0 2px 8px rgba(4, 138, 90, 0.15); text-align: center; }
.login-title { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }
.login-subtitle { margin: 10px 0 0 0; font-size: 13px; color: rgba(255,255,255,0.95); font-weight: 400; }
.login-card { background: #fff; padding: 32px; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.login-form { }
.login-form .form-group { margin-bottom: 20px; }
.login-form .form-group label { font-weight: 600; color: #1f2937; font-size: 13px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.3px; display: block; }
.login-form .form-group input { width: 100%; padding: 12px 14px; border: 2px solid #d1d5db; border-radius: 8px; font-size: 14px; transition: all 0.3s ease; }
.login-form .form-group input:focus { outline: none; border-color: #1a3a7a; box-shadow: 0 0 0 3px rgba(4, 138, 90, 0.1); background: #f5f7fa; }
.btn-login { width: 100%; background: #1a3a7a; color: #fff; border: none; padding: 14px 24px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 15px; transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(4, 138, 90, 0.2); text-transform: uppercase; letter-spacing: 0.5px; }
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(4, 138, 90, 0.3); }
.btn-login:active { transform: translateY(0); }
.login-footer { margin-top: 24px; padding-top: 16px; border-top: 1px solid #e5e7eb; text-align: center; }
.footer-text { font-size: 12px; color: #94a3b8; margin: 0; font-style: italic; }

/* API Log Detail Page Styles */
.detail-container { max-width: 1200px; margin: 0 auto; padding: 24px 0; }
.detail-header { margin-bottom: 24px; padding: 24px; background: #1a3a7a; border-radius: 8px; color: #fff; box-shadow: 0 2px 8px rgba(4, 138, 90, 0.15); }
.detail-title { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.detail-subtitle { margin: 10px 0 0 0; font-size: 14px; color: rgba(255,255,255,0.95); font-weight: 400; }
.detail-card { margin-bottom: 20px; }
.detail-info-header { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid #1a3a7a; }
.detail-info-header h2 { margin: 0; font-size: 16px; font-weight: 700; color: #1f2937; text-transform: uppercase; letter-spacing: 0.3px; }
.detail-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 16px; background: #f5f7fa; border-radius: 8px; border-left: 4px solid #1a3a7a; }
.info-item { display: flex; flex-direction: column; gap: 6px; }
.info-label { font-weight: 700; color: #1f2937; font-size: 12px; text-transform: uppercase; letter-spacing: 0.3px; }
.info-value { color: #334155; font-size: 13px; padding: 8px; background: #fff; border-radius: 4px; border-left: 2px solid #1a3a7a; }
.detail-section-header { margin-bottom: 16px; }
.detail-section-header h2 { margin: 0 0 6px 0; font-size: 16px; font-weight: 700; color: #1f2937; text-transform: uppercase; letter-spacing: 0.3px; }
.section-desc { margin: 0; font-size: 12px; color: #64748b; }
.code-block { background: #0f172a; color: #e2e8f0; padding: 16px; border-radius: 8px; overflow-x: auto; white-space: pre-wrap; word-break: break-word; font-size: 12px; font-family: 'Courier New', monospace; line-height: 1.5; border-left: 4px solid #1a3a7a; }
.action-buttons { display: flex; gap: 12px; margin-top: 24px; }
.btn-back { background: #1a3a7a; color: #fff; border: none; padding: 12px 28px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 14px; transition: all 0.3s ease; box-shadow: 0 2px 6px rgba(4, 138, 90, 0.2); text-decoration: none; display: inline-block; text-transform: uppercase; letter-spacing: 0.5px; }
.btn-back:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(4, 138, 90, 0.3); }

@media (max-width: 768px) {
  .login-container { max-width: 100%; margin: 20px; }
  .login-card { padding: 24px; }
  .detail-info-grid { grid-template-columns: 1fr; }
  .detail-title { font-size: 22px; }
}

/* Error Page Styles */
.error-container { max-width: 600px; margin: 60px auto; padding: 20px; }
.error-card { background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.1); text-align: center; }
.error-icon { font-size: 64px; margin-bottom: 20px; display: block; }
.error-title { margin: 0 0 16px 0; font-size: 28px; font-weight: 700; color: #ef4444; }
.error-message { margin: 0 0 24px 0; font-size: 16px; color: #64748b; line-height: 1.6; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.error-actions .btn-primary { margin: 0; }
.error-actions .btn-secondary { background: #6b7280; padding: 12px 24px; font-size: 15px; border-radius: 6px; font-weight: 600; transition: all 0.3s ease; color: #fff; text-decoration: none; display: inline-block; }
.error-actions .btn-secondary:hover { background: #4b5563; transform: translateY(-2px); box-shadow: 0 6px 12px rgba(75, 85, 99, 0.4); }






