/* style.css - NovaTech Reimbursement System Styling */

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

:root {
  --bg-primary: #0a0f1d;
  --bg-secondary: rgba(18, 26, 47, 0.75);
  --bg-tertiary: rgba(30, 41, 71, 0.5);
  
  --primary: #6366f1; /* Indigo */
  --primary-glow: rgba(99, 102, 241, 0.4);
  --accent: #06b6d4; /* Cyan */
  
  --success: #10b981; /* Emerald */
  --success-glow: rgba(16, 185, 129, 0.3);
  --success-bg: rgba(16, 185, 129, 0.15);
  
  --danger: #ef4444; /* Red */
  --danger-glow: rgba(239, 68, 68, 0.3);
  --danger-bg: rgba(239, 68, 68, 0.15);

  --warning: #f59e0b; /* Amber */
  --warning-glow: rgba(245, 158, 11, 0.3);
  --warning-bg: rgba(245, 158, 11, 0.15);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --transition-speed: 0.3s;
  
  --font-main: 'Inter', 'Noto Sans TC', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 10% 10%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
    radial-gradient(at 90% 10%, rgba(6, 182, 212, 0.1) 0px, transparent 50%),
    radial-gradient(at 50% 90%, rgba(16, 185, 129, 0.05) 0px, transparent 50%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Glassmorphism panel */
.glass-panel {
  background: var(--bg-secondary);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
}

/* Container */
.container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}

/* Top Header */
.app-header {
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(12px);
}

.app-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
  color: white;
}

.logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  background: linear-gradient(to right, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-subtext {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--accent);
  background: none;
  -webkit-text-fill-color: initial;
  margin-left: 0.25rem;
  border-left: 1px solid var(--border-color);
  padding-left: 0.5rem;
}

/* Header Navigation (Center Tabs) */
.header-nav {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.menu-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: 30px;
  gap: 4px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-speed);
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
  color: white;
  background: linear-gradient(135deg, var(--primary), rgba(99, 102, 241, 0.6));
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* User Profile Badge (Right) & Dropdown Simulation */
.user-role-container {
  position: relative;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.85rem;
  border-radius: 24px;
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-speed);
}

.user-profile-badge:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.user-avatar {
  width: 28px;
  height: 28px;
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.user-info-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.badge-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.badge-dept {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.role-pill {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-weight: 500;
}

.role-pill.accountant {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.chevron-down {
  color: var(--text-muted);
  transition: transform var(--transition-speed);
}

.user-role-container.open .chevron-down {
  transform: rotate(180deg);
}

/* User Dropdown Menu */
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  z-index: 150;
  overflow: hidden;
  animation: fadeIn 0.2s ease-out;
}

.user-role-container.open .user-dropdown-menu {
  display: flex;
}

.dropdown-header {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all var(--transition-speed);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.dropdown-item.active {
  background: rgba(99, 102, 241, 0.1);
}

.item-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.dropdown-item.active .item-avatar {
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent);
}

.item-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.item-name {
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge-role {
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 400;
}

.badge-role.accountant {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning);
}

.item-dept {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* Main Content Area */
.main-content {
  flex-grow: 1;
  padding: 2.5rem 0 4rem;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.tab-pane.active {
  display: block;
}

.section-header {
  margin-bottom: 2rem;
  text-align: center;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==========================================
   TAB 1: Form Styling (新增報銷)
   ========================================== */
.claim-form-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem;
}

.claim-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.label-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(6, 182, 212, 0.1);
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.form-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  padding-left: 2.75rem;
  color: white;
  font-size: 0.95rem;
  outline: none;
  font-family: var(--font-main);
  transition: all var(--transition-speed);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  background: rgba(15, 23, 42, 0.7);
}

/* Readonly fields styling */
.readonly-container {
  opacity: 0.85;
}

.readonly-input {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  cursor: not-allowed;
}

.readonly-input:focus {
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.03);
}

/* Select element customization */
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
  padding-right: 2.75rem;
}

.form-select option {
  background-color: #0f172a;
  color: white;
}

/* Description field character counter */
.char-counter {
  position: absolute;
  right: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  pointer-events: none;
}

.char-counter.limit-reached {
  color: var(--danger);
  font-weight: 600;
}

/* Amount field customization */
.amount-input {
  padding-left: 2.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.currency-symbol {
  position: absolute;
  left: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  pointer-events: none;
}

.form-help {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Upload zone */
.upload-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.3);
  position: relative;
  transition: all var(--transition-speed);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.file-hidden-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.upload-icon {
  color: var(--text-muted);
  transition: color var(--transition-speed);
}

.upload-dropzone:hover .upload-icon {
  color: var(--accent);
}

.upload-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.btn-subtle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all var(--transition-speed);
}

.upload-dropzone:hover .btn-subtle {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.upload-preview {
  position: relative;
  width: 100%;
  max-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
}

.upload-preview img {
  max-width: 100%;
  max-height: 250px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity var(--transition-speed);
}

.upload-preview:hover .preview-overlay {
  opacity: 1;
}

.btn-preview-action {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-speed);
  z-index: 10;
}

.btn-preview-action:hover {
  transform: scale(1.1);
}

.btn-zoom:hover {
  background: var(--primary);
}

.btn-delete:hover {
  background: var(--danger);
}

/* Submit claim button */
.btn-submit {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  border: none;
  border-radius: 10px;
  color: white;
  padding: 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: all var(--transition-speed);
  margin-top: 0.5rem;
}

.btn-submit:hover {
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.6);
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(1px);
}

/* ==========================================
   TAB 2: Query Claims Dashboard (查詢報銷)
   ========================================== */
.query-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 1.25rem;
  gap: 1.25rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.stat-card.border-amber { border-left: 3px solid var(--warning); }
.stat-card.border-green { border-left: 3px solid var(--success); }
.stat-card.border-red { border-left: 3px solid var(--danger); }

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  padding: 1.25rem;
  gap: 1.25rem;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 160px;
}

.filter-group.flex-grow {
  flex-grow: 1;
}

.filter-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.filter-select, .filter-search-input {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: white;
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  outline: none;
  font-family: var(--font-main);
  transition: all var(--transition-speed);
}

.filter-select:focus, .filter-search-input:focus {
  border-color: var(--primary);
  background: rgba(15, 23, 42, 0.6);
}

.filter-select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 14px;
  padding-right: 2.25rem;
}

.filter-select option {
  background-color: #0f172a;
}

/* Table styling */
.table-panel {
  overflow: hidden;
  padding: 0.5rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.claims-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.claims-table th {
  padding: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.claims-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  vertical-align: middle;
}

.claims-table tbody tr {
  transition: background-color var(--transition-speed);
}

.claims-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.col-applicant {
  min-width: 180px;
}

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

/* Table elements */
.applicant-cell {
  display: flex;
  flex-direction: column;
}

.applicant-name {
  font-weight: 600;
}

.applicant-id {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.claim-amount-cell {
  font-family: monospace;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
}

.receipt-btn-cell {
  display: flex;
  justify-content: center;
}

.btn-receipt-thumb {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed);
}

.btn-receipt-thumb:hover {
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.3);
  transform: scale(1.05);
}

.btn-receipt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-receipt-placeholder-icon {
  color: var(--text-muted);
}

.btn-receipt-thumb:hover .btn-receipt-placeholder-icon {
  color: var(--accent);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.status-pending {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.status-approved {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.status-rejected {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.rejection-reason-tip {
  font-size: 0.7rem;
  color: var(--danger);
  margin-top: 0.25rem;
  font-weight: 400;
  display: block;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Action Buttons (For accountant review) */
.col-actions {
  min-width: 140px;
}

.action-buttons-group {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.btn-action {
  border: none;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: all var(--transition-speed);
}

.btn-approve {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.btn-approve:hover {
  background: var(--success);
  color: white;
  box-shadow: 0 0 10px var(--success-glow);
}

.btn-reject {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-reject:hover {
  background: var(--danger);
  color: white;
  box-shadow: 0 0 10px var(--danger-glow);
}

.empty-table-row {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem !important;
  font-size: 0.95rem;
}

/* Text status colors */
.text-green { color: var(--success) !important; }
.text-amber { color: var(--warning) !important; }
.text-red { color: var(--danger) !important; }

/* ==========================================
   Modals (彈出視窗)
   ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 7, 16, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  opacity: 0;
  animation: fadeIn 0.25s forwards;
}

.modal-card {
  width: 90%;
  max-width: 500px;
  padding: 1.5rem;
  border-radius: 16px;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.receipt-modal-card {
  max-width: 420px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.75rem;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-speed);
}

.btn-close-modal:hover {
  color: var(--text-primary);
}

.receipt-full-container {
  width: 100%;
  background: #1e293b;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.receipt-full-container img {
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
}

/* Rejection Modal details */
.reject-prompt-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.textarea-input {
  width: 100%;
  height: 100px;
  resize: none;
  font-size: 0.85rem;
  padding: 0.75rem;
  padding-left: 0.75rem; /* overrides regular form inputs */
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

.btn-danger-action {
  background: var(--danger);
  border: none;
  border-radius: 8px;
  color: white;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed);
  box-shadow: 0 4px 10px var(--danger-glow);
}

.btn-danger-action:hover {
  background: #dc2626;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.5);
}

/* ==========================================
   Toast Notification Styling
   ========================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: auto;
  min-width: 250px;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards, fadeOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) 2.7s forwards;
}

.toast.toast-success {
  border-left: 4px solid var(--success);
}

.toast.toast-danger {
  border-left: 4px solid var(--danger);
}

.toast.toast-warning {
  border-left: 4px solid var(--warning);
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-success .toast-icon { color: var(--success); }
.toast-danger .toast-icon { color: var(--danger); }
.toast-warning .toast-icon { color: var(--warning); }

/* ==========================================
   Animations
   ========================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideIn {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

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

/* Responsive layout updates */
@media (max-width: 900px) {
  .app-header .container {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .header-nav {
    order: 3;
    justify-content: center;
  }
  
  .menu-tabs {
    width: 100%;
  }
  
  .tab-btn {
    flex-grow: 1;
    justify-content: center;
  }
  
  .user-role-container {
    order: 2;
    align-self: flex-end;
  }
  
  .stats-panel {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .filter-panel {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 600px) {
  .stats-panel {
    grid-template-columns: 1fr;
  }
  
  .claim-form-container {
    padding: 1.25rem;
  }
  
  .col-actions {
    min-width: 100px;
  }
  
  .action-buttons-group {
    flex-direction: column;
    gap: 0.35rem;
  }
  
  .btn-action {
    width: 100%;
    justify-content: center;
  }
}

.purpose-tag {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(6, 182, 212, 0.2);
  white-space: nowrap;
  display: inline-block;
}

