/* =============================
   Global Styles
============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #f3f4f6;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* =============================
   Container
============================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

/* =============================
   Glass Card Base
============================= */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  padding: 25px 30px;
  margin-bottom: 30px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.7);
}

/* =============================
   Header
============================= */
header {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 0 0 40px 40px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.5);
}

header h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

header .subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  margin-top: 5px;
  color: #d1d5db;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.4);
}

/* =============================
   Form Layout
============================= */
.add-udhaar h2 {
  margin-bottom: 20px;
  font-size: 1.9rem;
  color: #e0e7ff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 6px;
  font-weight: 500;
  color: #c7d2fe;
}

.form-group input {
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: #f3f4f6;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  border-color: #8b5cf6;
  outline: none;
  box-shadow: 0 0 12px rgba(139,92,246,0.5);
}

/* Button */
.btn {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
  transition: all 0.3s ease;
}

.btn:hover {
  background: linear-gradient(135deg, #a78bfa, #818cf8);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.7);
}

/* =============================
   Stats Boxes
============================= */
.stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.stats p {
  flex: 1;
  text-align: center;
  padding: 15px 25px;
  border-radius: 15px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 8px 25px rgba(0,0,0,0.6);
  font-weight: 600;
  color: #ffffff;
  transition: all 0.3s ease;
}

.stats p:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.7);
}

/* =============================
   Table Styles
============================= */
.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  transition: all 0.3s ease;
}

table th, table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  color: #e0e7ff;
}

table th {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

table tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.03);
}

table tbody tr:hover {
  background: rgba(139,92,246,0.2);
  transform: scale(1.02);
  transition: all 0.2s ease;
}

/* Action Buttons in Table */
.edit-btn, .delete-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 5px;
}

.edit-btn {
  background: #3b82f6;
  color: #ffffff;
}

.edit-btn:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

.delete-btn {
  background: #ef4444;
  color: #ffffff;
}

.delete-btn:hover {
  background: #b91c1c;
  transform: translateY(-2px);
}

/* =============================
   Footer
============================= */
footer {
  text-align: center;
  padding: 25px 0;
  margin-top: 50px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

/* =============================
   Responsive
============================= */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }

  .stats {
    flex-direction: column;
  }

  table th, table td {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  header h1 {
    font-size: 2rem;
  }

  header .subtitle {
    font-size: 1rem;
  }
}
