@import url('https://fonts.googleapis.com/css2?family=Taviraj:wght@300;400;500;600&family=Prompt:wght@300;400;500;600&display=swap');

:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --secondary-color: #64748b;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-color: #334155;
  --heading-color: #1e293b;
  --input-bg: #ffffff;
  --input-border: #cbd5e1;
  --input-focus: #4f46e5;
  --error-color: #ef4444;
  --success-color: #10b981;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --radius: 0.75rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Prompt', 'Taviraj', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  /* This centers vertically, might be bad for long content */
  line-height: 1.6;
  padding: 2rem 0;
  /* Add padding for scroll */
  align-items: flex-start;
  /* Better for long content */
}

.container {
  width: 100%;
  max-width: 800px;
  padding: 2rem;
}

.container-fluid {
  width: 100%;
  max-width: 95%;
  padding: 2rem;
}

.glass-card {
  background: var(--card-bg);
  border-radius: 20px;
  /* More rounded */
  padding: 3rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.01);
  border: 1px solid #e2e8f0;
}

h1 {
  font-size: 1.875rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-align: center;
  font-weight: 600;
}

h2 {
  font-size: 1.25rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 500;
}

h3 {
  color: var(--heading-color);
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--heading-color);
  font-size: 0.95rem;
}

input[type="text"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="password"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--heading-color);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s ease;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

input[readonly] {
  background-color: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
  cursor: not-allowed;
}

button {
  width: 100%;
  padding: 0.875rem;
  border: none;
  border-radius: var(--radius);
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
  box-shadow: var(--shadow-sm);
}

button:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-md);
}

.hidden {
  display: none;
}

.upload-section {
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.file-input-wrapper {
  margin-bottom: 1rem;
}

.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 1rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-gray {
  color: #64748b;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

div:where(.swal2-container) div:where(.swal2-popup) {
  border-radius: 16px !important;
  font-family: 'Prompt', sans-serif !important;
}

/* Modern Upload Section & Theme Enhancements */
.upload-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 2.5rem;
  margin-bottom: 2rem;
  border: 1px solid #f1f5f9;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.upload-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: #e0e7ff;
}

.upload-step-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #eef2ff;
  color: var(--primary-color);
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

.upload-icon-wrapper {
  background: #eef2ff;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.file-upload-styled {
  position: relative;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #f8fafc;
  margin-bottom: 1.5rem;
}

.file-upload-styled:hover {
  border-color: var(--primary-color);
  background: #eff6ff;
}

.file-upload-styled input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-text {
  font-weight: 500;
  color: #475569;
}

.upload-hint {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 0.5rem;
}

.btn-gradient-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
  border: none;
  color: white;
  font-size: 1rem;
  padding: 1rem;
}

.btn-gradient-primary:hover {
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
  transform: translateY(-1px);
}

.btn-gradient-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.2);
  border: none;
  color: white;
  font-size: 1rem;
  padding: 1rem;
}

.btn-gradient-warning:hover {
  box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.3);
  transform: translateY(-1px);
}

/* Modern Tabs */
.tab-container {
  background: #f1f5f9;
  padding: 0.5rem;
  border-radius: 1rem;
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tab-btn {
  flex: 1;
  padding: 0.85rem;
  border-radius: 0.75rem;
  border: none;
  background: transparent;
  color: #64748b;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  font-size: 0.95rem;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  color: var(--primary-color);
}

.tab-btn.active {
  background: #fff;
  color: var(--primary-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Action Buttons */
.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  /* Squircle */
  border: none;
  background: #f1f5f9;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 0;
  text-decoration: none;
  /* For a tags */
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.action-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

/* Variant Colors */
.btn-view:hover {
  background: #e2e8f0;
  color: #334155;
}

.btn-welfare {
  color: #d97706;
  background: #fffbeb;
}

.btn-welfare:hover {
  background: #d97706;
  color: white;
}

.btn-debt {
  color: #8b5cf6;
  background: #f5f3ff;
}

.btn-debt:hover {
  background: #8b5cf6;
  color: white;
}

.btn-status {
  color: #0ea5e9;
  background: #e0f2fe;
}

.btn-status:hover {
  background: #0ea5e9;
  color: white;
}

.btn-schedule {
  color: #10b981;
  background: #d1fae5;
}

.btn-schedule:hover {
  background: #10b981;
  color: white;
}

.btn-pdf {
  color: #be123c;
  background: #ffe4e6;
}

.btn-pdf:hover {
  background: #be123c;
  color: white;
}

.btn-delete {
  color: #ef4444;
  background: transparent;
}

.btn-delete:hover {
  background: #fee2e2;
  color: #ef4444;
}

/* Refined Table */
table {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px #e2e8f0;
  width: 100%;
}

th {
  background: #f8fafc;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 1rem !important;
}

td {
  padding: 1rem !important;
  vertical-align: middle;
}

tr:hover td {
  background: #f8fafc;
}

tr:last-child td {
  border-bottom: none !important;
}

@media (max-width: 600px) {

  .container,
  .container-fluid {
    padding: 1rem;
  }

  .glass-card {
    padding: 1.5rem;
  }

  h1 {
    font-size: 1.5rem;
  }
}
/* Search Form */
.search-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    border: 1px solid #f1f5f9;
}

.search-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.form-group-inline {
    margin-bottom: 0;
}

.form-group-inline label {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 5px;
}

.form-actions {
    display: flex;
    gap: 10px;
}

/* Specific Search Buttons */
.btn-search {
    padding: 0.6rem 1.5rem;
    background: #0ea5e9;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    width: auto;
    display: inline-block;
}
.btn-search:hover {
    background: #0284c7;
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.3);
}

.btn-reset {
    padding: 0.6rem 1.2rem;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    width: auto;
    display: inline-block;
}
.btn-reset:hover {
    background: #e2e8f0;
    color: #334155;
}

