/* ============================================
   VaidyaSetu - Global Styles
   ============================================ */

/* ── CSS Variables ── */
:root {
  /* Brand Colors */
  --navy: #0D2137;
  --navy-mid: #1B4F72;
  --teal: #2E86AB;
  --gold: #D4A017;
  --gold-light: #F1C40F;

  /* Neutral Colors */
  --bg: #EEF2F7;
  --surface: #FFFFFF;
  --text: #1A2A3A;
  --text-2: #6B7E8E;
  --border: rgba(26, 42, 58, 0.1);

  /* Status Colors */
  --success: #27AE60;
  --warning: #E67E22;
  --danger: #E74C3C;
  --info: #2E86AB;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(13, 33, 55, 0.05);
  --shadow: 0 4px 20px rgba(13, 33, 55, 0.08);
  --shadow-lg: 0 8px 30px rgba(13, 33, 55, 0.12);

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Utility Classes ── */
.hidden {
  display: none !important;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

/* ── Loading Spinner ── */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--gold);
  width: 24px;
  height: 24px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   LOGIN & AUTH SCREENS
   ============================================ */

.auth-screen {
  min-height: 100vh;
  background: linear-gradient(160deg, #0D2137 0%, #1B4F72 55%, #2E86AB 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

/* Animated background pattern */
.auth-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(212, 160, 23, 0.1) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(46, 134, 171, 0.1) 0%, transparent 50%);
  animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.auth-logo {
  text-align: center;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.logo-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 2px solid rgba(212, 160, 23, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  transition: var(--transition);
}

.logo-ring:hover {
  transform: scale(1.05);
  border-color: rgba(212, 160, 23, 0.7);
}

.auth-logo h1 {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.auth-logo p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.auth-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 32px 28px;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-card h2 {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

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

.form-label {
  display: block;
  color: var(--text-1);
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 600;
  line-height: 1.4;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  color: #fff;
  font-size: 15px;
  transition: var(--transition);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.15);
}

.form-select {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
}

.form-select option {
  background: var(--navy);
  color: #fff;
}

.form-select:focus {
  outline: none;
  border-color: var(--gold);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.btn {
  padding: 14px 24px;
  border: none;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  letter-spacing: 0.5px;
  margin-top: 8px;
  box-shadow: 0 4px 15px rgba(212, 160, 23, 0.3);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 160, 23, 0.4);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
}

.auth-link {
  text-align: center;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.auth-link a {
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.auth-link a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-error {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #ff8080;
}

.alert-success {
  background: rgba(39, 174, 96, 0.15);
  border: 1px solid rgba(39, 174, 96, 0.3);
  color: #5dff9f;
}

.alert-info {
  background: rgba(46, 134, 171, 0.15);
  border: 1px solid rgba(46, 134, 171, 0.3);
  color: #7dd3fc;
}

/* ============================================
   APP LAYOUT
   ============================================ */

.app-container {
  display: none;
  min-height: 100vh;
  flex-direction: column;
}

.app-container.active {
  display: flex;
}

/* ── Header ── */
.app-header {
  background: linear-gradient(135deg, #0D2137 0%, #1B4F72 100%);
  padding: 0 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1600px;
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(212, 160, 23, 0.15);
  border: 1.5px solid rgba(212, 160, 23, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.brand-icon:hover {
  transform: rotate(10deg) scale(1.1);
}

.brand-text h1 {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.brand-text p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  margin-top: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(212, 160, 23, 0.3);
  border-radius: 24px;
  padding: 6px 16px 6px 6px;
  transition: var(--transition);
}

.user-chip:hover {
  background: rgba(255, 255, 255, 0.12);
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
}

.user-info span {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
}

.user-info small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

.btn-logout {
  padding: 8px 16px;
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #ff8080;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-logout:hover {
  background: rgba(231, 76, 60, 0.2);
  transform: translateY(-1px);
}

/* ── Navigation Tabs ── */
.nav-tabs {
  display: flex;
  gap: 4px;
  padding: 0 28px;
  background: linear-gradient(135deg, #0D2137 0%, #1B4F72 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 1600px;
  margin: 0 auto;
}

.nav-tab {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-tab:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: rgba(212, 160, 23, 0.05);
}

/* ── Main Content ── */
.main-content {
  flex: 1;
  padding: 28px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   CARDS & SECTIONS
   ============================================ */

.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-accent {
  width: 4px;
  height: 20px;
  background: linear-gradient(to bottom, var(--gold), var(--teal));
  border-radius: 2px;
}

.card-body {
  color: var(--text);
}

/* ============================================
   STATS CARDS
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--navy-mid), var(--gold));
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--navy-mid);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 4px;
}

.stat-change {
  font-size: 12px;
  color: var(--text-2);
}

.stat-change.positive {
  color: var(--success);
}

.stat-change.negative {
  color: var(--danger);
}

/* ============================================
   FORMS
   ============================================ */

.form-section {
  background: var(--surface);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(13, 33, 55, 0.08);
  margin-bottom: 24px;
  border: 1px solid rgba(27, 79, 114, 0.08);
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-mid);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(27, 79, 114, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid rgba(27, 79, 114, 0.2);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-1);
  background: #fff;
  transition: var(--transition);
  font-family: inherit;
  line-height: 1.5;
}

.form-control:hover {
  border-color: rgba(27, 79, 114, 0.35);
}

.form-control:focus {
  outline: none;
  border-color: var(--navy-mid);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(27, 79, 114, 0.08);
}

.form-control::placeholder {
  color: rgba(13, 33, 55, 0.4);
  font-size: 14px;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
  padding: 12px 14px;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230D2137' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.required {
  color: var(--danger);
  font-size: 14px;
  margin-left: 2px;
  font-weight: 600;
}

/* ============================================
   TABLES
   ============================================ */

.table-container {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

thead {
  background: #F8F9FA;
}

th {
  text-align: left;
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border-bottom: 2px solid var(--border);
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  white-space: nowrap;
  color: var(--text);
}

tbody tr {
  transition: var(--transition);
}

tbody tr:hover {
  background: rgba(27, 79, 114, 0.02);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-opd {
  background: rgba(27, 79, 114, 0.1);
  color: var(--navy-mid);
}

.badge-ipd {
  background: rgba(46, 134, 171, 0.12);
  color: var(--info);
}

.badge-daycare {
  background: rgba(230, 126, 34, 0.12);
  color: var(--warning);
}

.badge-emergency {
  background: rgba(231, 76, 60, 0.12);
  color: var(--danger);
}

.badge-pending {
  background: rgba(230, 126, 34, 0.12);
  color: var(--warning);
}

.badge-accepted {
  background: rgba(39, 174, 96, 0.12);
  color: var(--success);
}

.badge-rejected {
  background: rgba(231, 76, 60, 0.12);
  color: var(--danger);
}

.badge-completed {
  background: rgba(46, 134, 171, 0.12);
  color: var(--info);
}

/* ============================================
   FILE UPLOAD
   ============================================ */

.file-upload-area {
  border: 2px dashed rgba(27, 79, 114, 0.35);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  color: var(--text-1);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  background: linear-gradient(135deg, #FAFBFC 0%, #F5F7F9 100%);
  margin: 16px 0;
  display: block;
}

.file-upload-area:hover {
  border-color: var(--gold);
  background: linear-gradient(135deg, #fff 0%, #FAFBFC 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 33, 55, 0.08);
}

.file-upload-area.drag-over {
  border-color: var(--gold);
  border-style: solid;
  background: rgba(212, 160, 23, 0.08);
}

.file-upload-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.8;
}

.file-upload-area strong {
  display: block;
  color: var(--text-1);
  font-size: 16px;
  margin-bottom: 8px;
}

.file-upload-area small {
  color: var(--text-2);
  font-size: 14px;
}

.file-list {
  margin-top: 16px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #F8F9FA;
  border-radius: 8px;
  margin-bottom: 8px;
}

.file-name {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

.file-size {
  font-size: 12px;
  color: var(--text-2);
  margin-left: 8px;
}

.file-remove {
  background: rgba(231, 76, 60, 0.1);
  border: none;
  color: var(--danger);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.file-remove:hover {
  background: rgba(231, 76, 60, 0.2);
}

/* ============================================
   FILTERS
   ============================================ */

.filters-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  align-items: center;
}

.filter-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  transition: var(--transition);
}

.filter-input:focus {
  outline: none;
  border-color: var(--navy-mid);
  box-shadow: 0 0 0 3px rgba(27, 79, 114, 0.1);
}

.btn-filter {
  padding: 10px 18px;
  background: var(--navy-mid);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-filter:hover {
  background: var(--navy);
  transform: translateY(-1px);
}

.btn-export {
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  border: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-export:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 160, 23, 0.3);
}

/* ============================================
   ACTION BUTTONS
   ============================================ */

.btn-action {
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-dark) 100%);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 79, 114, 0.3);
}

/* ============================================
   MODAL
   ============================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 33, 55, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
}

.modal-content {
  background: white;
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(13, 33, 55, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 2px solid rgba(27, 79, 114, 0.1);
  background: linear-gradient(135deg, #FAFBFC 0%, #F5F7F9 100%);
  border-radius: 16px 16px 0 0;
}

.modal-header h2 {
  margin: 0;
  color: var(--navy-dark);
  font-size: 20px;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--text-2);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  line-height: 1;
}

.modal-close:hover {
  background: rgba(231, 76, 60, 0.1);
  color: var(--danger);
}

.modal-body {
  padding: 28px;
}

.detail-section {
  background: #FAFBFC;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(27, 79, 114, 0.08);
}

.detail-section h3 {
  margin: 0 0 16px 0;
  color: var(--navy-mid);
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(27, 79, 114, 0.1);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-top: 12px;
}

.detail-grid div {
  font-size: 14px;
  color: var(--text-1);
  line-height: 1.6;
}

.detail-grid strong {
  color: var(--navy-mid);
  font-weight: 600;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    height: auto;
    padding: 16px 0;
    gap: 12px;
  }

  .nav-tabs {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .main-content {
    padding: 16px;
  }

  .form-section {
    padding: 20px;
    margin-bottom: 16px;
  }

  .section-title {
    font-size: 14px;
    margin-bottom: 18px;
    padding-bottom: 10px;
  }

  .form-grid,
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .filters-bar {
    flex-direction: column;
  }

  .filter-input {
    width: 100%;
  }

  .card {
    padding: 18px;
  }

  .auth-card {
    padding: 24px 20px;
  }

  .modal-content {
    max-width: 100%;
    margin: 0;
    border-radius: 12px;
  }

  .modal-header {
    padding: 20px;
  }

  .modal-header h2 {
    font-size: 18px;
  }

  .modal-body {
    padding: 20px;
  }

  .detail-section {
    padding: 16px;
  }

  .detail-section h3 {
    font-size: 15px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .app-header {
    padding: 0 16px;
  }

  .nav-tabs {
    padding: 0 16px;
  }

  .brand-text h1 {
    font-size: 16px;
  }

  .brand-text p {
    font-size: 11px;
  }

  .user-info span {
    font-size: 12px;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  animation: slideUp 0.4s ease;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .app-header,
  .nav-tabs,
  .btn,
  .filters-bar {
    display: none;
  }

  .main-content {
    padding: 0;
  }

  .card {
    box-shadow: none;
    page-break-inside: avoid;
  }
}
