:root {
  --font-family: 'Inter', sans-serif;
  --bg-color: #eee;
  --card-bg: rgba(0, 71, 133, 0.88);
  --card-border: rgba(255, 255, 255, 0.1);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #01794d;
  --primary-hover: #fff;
  --input-bg: rgba(15, 23, 42, 0.6);
  --input-border: rgba(255, 255, 255, 0.1);
  --input-focus: #fff;
  --success: #10b981;
  --error: #ef4444;
    --clr-primary:       #004785;
  --clr-primary-dk:    #003260;
  --clr-primary-lt:    #1a6ab5;
  --clr-green:         #01794C;
  --clr-green-lt:      #02a869;
  --clr-accent:        #01794F;
  --clr-danger:        #c0392b;
  --clr-warning:       #e67e22;
  --clr-success:       #27ae60;

  --clr-bg:            #efefee;
  --clr-surface:       rgba(255,255,255,0.96);
  --clr-glass:         rgba(255,255,255,0.14);
  --clr-glass-border:  rgba(255,255,255,0.42);

  --clr-text:          #1a2035;
  --clr-text-2:        #4a5568;
  --clr-text-muted:    #718096;

  --radius-s:  8px;
  --radius-m:  14px;
  --radius-l:  20px;
  --radius-xl: 28px;

  --shadow-s:  0 2px 8px  rgba(0,71,133,.08);
  --shadow-m:  0 4px 20px rgba(0,71,133,.13);
  --shadow-l:  0 8px 40px rgba(0,71,133,.20);
  --shadow-xl: 0 16px 64px rgba(0,71,133,.26);

  --ease: cubic-bezier(.4,0,.2,1);
  --dur-fast: 150ms;
  --dur-base: 280ms;
  --dur-slow: 480ms;

  --font-ui:  'Inter', system-ui, -apple-system, sans-serif;
  --font-dsp: 'Playfair Display', 'Garamond', Georgia, serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: auto;
}

/* Background Animations */
.login-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  animation: float 10s infinite ease-in-out alternate;
}

.blob-1 {
  width: 300px;
  height: 300px;
  background: rgba(99, 102, 241, 0.4);
  top: 10%;
  left: 20%;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: rgba(236, 72, 153, 0.3);
  bottom: 10%;
  right: 15%;
  animation-delay: -5s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(30px, 50px) scale(1.1);
  }
}

/* Glass Card */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 3rem;
  width: 100%;
  max-width: 420px;
  z-index: 1;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.text-card {
  background: rgb(255,255,255,0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgb(255,255,255,0.8);
  border-radius: 24px;
  padding: 1rem;
  width: 100%;
  min-height: 10px;
  max-width: 1800px;
  z-index: 1;
  box-shadow: 0 25px 50px -12px rgba(0, 71, 133, 0.16);
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  color:rgb(0,0,0,0.88);
}
@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.5rem;
}

h1 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
}

/* Form Elements */
.input-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255,255,255,0.64);
  border: 1px solid var(--input-border);
  border-color:rgb(1,121,76);
  border-radius: 12px;
  color: black;
  font-size: 1rem;
  transition: all 0.2s ease;
  outline: none;
}

input:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

input::placeholder {
  color: rgba(148, 163, 184, 0.5);
}

/* Button */
.submit-btn {
  width: 100%;
  padding: 0.875rem 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px var(--primary);
}

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

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

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

.hidden {
  display: none !important;
}

/* Messages */
.message-container {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  animation: fadeIn 0.3s ease;
}

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

.message-error {
  background: rgba(255, 255, 255, 0.64);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

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

/* Profile Page Additions */
.table-card {
  max-width: 800px; /* Wider for the table */
}

.header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.header-section h1 {
  margin-bottom: 0;
}

.logout-btn {
  padding: 0.5rem 1rem;
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
  margin-bottom: 2rem;
}

.form-row .input-group {
  margin-bottom: 0;
}

.add-btn {
  margin-top: 0;
  height: 46px; /* Match input height */
}

/* Modern Table */
.table-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 400px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(215, 223, 242, 0.64);
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.modern-table th,
.modern-table td {
  padding: 1rem;
  color:black;
  font-size: 1.2rem;
  border-bottom: 1px solid var(--card-border);
}

.modern-table th {
  background: rgba(0, 71, 133, 0.64);
  font-weight: 600;
  color: white;
  text-align: center;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.modern-table tbody tr {
  transition: background-color 0.2s ease;
}

.modern-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.44);
}

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

/* Dashboard Grid Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(400px, auto);
  gap: 1.5rem;
  width: 100%;
  max-width: 1200px;
  padding: 2rem;
  z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Card variants for grid */
.dashboard-grid .glass-card {
  max-width: none;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.col-span-1 { grid-column: span 1; }
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }

@media (max-width: 1024px) {
  .col-span-3 { grid-column: span 2; }
}

@media (max-width: 768px) {
  .col-span-2, .col-span-3 { grid-column: span 1; }
}

/* Metric Cards */
.metric-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.metric-value {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--success));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.metric-label {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-icon {
  margin-bottom: 1rem;
  color: var(--primary);
}
/* ── Buttons ────────────────────────────────────────────────── */
.bttn {
  font-family: var(--font-ui) !important;
  font-weight: 600 !important;
  border-radius: var(--radius-s) !important;
  transition: all var(--dur-fast) var(--ease) !important;
  letter-spacing: .02em;
  width: 16%;
  padding: 0.875rem 1rem;
  background: var(--clr-action);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.bttn.bttn-material-flat-dk {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--clr-primary-dk);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-family: var(--font-ui) !important;
  font-weight: 600 !important;
  border-radius: var(--radius-s) !important;
  padding: .5rem 1.3rem !important;
  transition: all var(--dur-fast) var(--ease) !important;
}
.bttn.bttn-material-flat-lt {
  width: 32%;
  padding: 0.875rem 1rem;
  background: var(--clr-primary-lt);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-family: var(--font-ui) !important;
  font-weight: 600 !important;
  border-radius: var(--radius-s) !important;
  padding: .5rem 1.3rem !important;
  transition: all var(--dur-fast) var(--ease) !important;
}
.bttn-material-flat.bttn-primary {
  background: var(--clr-primary) !important; color: #fff !important;
}
.bttn-material-flat.bttn-primary:hover {
  background: var(--clr-primary-dk) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(0,71,133,.32) !important;
}
.bttn-material-flat.bttn-royal {
  background: #5b3f8c !important; color: #fff !important;
}
.bttn-material-flat.bttn-royal:hover {
  background: #4a3270 !important;
  transform: translateY(-1px) !important;
}
.bttn-material-flat.bttn-success {
  background: var(--clr-green) !important; color: #fff !important;
}
.bttn-material-flat.bttn-success:hover {
  background: #015e3b !important; transform: translateY(-1px) !important;
}
.bttn-material-flat.bttn-danger {
  background: var(--clr-danger) !important; color: #fff !important;
}
.bttn-material-flat.bttn-danger:hover {
  background: #a93226 !important; transform: translateY(-1px) !important;
}
.btn-info {
  background: var(--clr-accent) !important;
  border-color: var(--clr-accent) !important;
  color: #fff !important; font-weight: 600 !important;
}

/* Submit pulse animation */
#submit {
  animation: submitPulse 3s ease-in-out infinite;
}
@keyframes submitPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,71,133,.35); }
  50%      { box-shadow: 0 0 0 8px rgba(0,71,133,0); }
}

/* ── Example Buttons Row ────────────────────────────────────── */
.examples-card {
  background: linear-gradient(135deg, #f8ffff 0%, #f8ffff 100%) !important;
  border-top: 4px solid var(--clr-accent) !important;
}
.examples-card .bttn-material-flat {
  margin: 4px !important;
  background: white !important;
  color: var(--clr-primary) !important;
  border: 1.5px solid rgba(0,71,133,.2) !important;
  box-shadow: var(--shadow-s) !important;
}
.examples-card .bttn-material-flat:hover {
  background: var(--clr-primary) !important;
  color: white !important;
  border-color: var(--clr-primary) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-m) !important;
}
/* ── Hero Header ────────────────────────────────────────────── */
.hec-header {
  background: linear-gradient(135deg, var(--clr-primary-dk) 0%, var(--clr-primary) 16%, #02a869 100%);
  color: #fff;
  padding: 2rem 2.5rem 1.75rem;
  margin-bottom: 1.5rem;
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  box-shadow: var(--shadow-l);
  position: relative;
  overflow: hidden;
}
.hec-header::before {
  content: '';
  position: absolute; top: -50%; right: -8%;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(27,187,218,.18) 0%, transparent 68%);
  pointer-events: none;
}
.hec-header::after {
  content: '';
  position: absolute; bottom: -35%; left: 3%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(1,121,76,.14) 0%, transparent 68%);
  pointer-events: none;
}
.hec-logo {
  height: 58px; width: auto; object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .9;
}
.hec-header-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--clr-glass);
  border: 1px solid var(--clr-glass-border);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: .75rem; font-weight: 600;
  color: rgba(255,255,255,.9);
  letter-spacing: .06em; text-transform: uppercase;
  backdrop-filter: blur(8px);
  margin-bottom: .8rem;
}
.hec-header-badge .badge-dot {
  width: 7px; height: 7px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulseDot 2.2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(.8); }
}
.hec-title {
  font-family: var(--font-dsp);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700; line-height: 1.15;
  color: #fff !important; letter-spacing: -.02em;
}
.hec-subtitle {
  font-family: var(--font-dsp);
  font-size: clamp(.95rem, 1.8vw, 1.25rem);
  color: rgba(255,255,255,.82) !important;
  font-weight: 400; margin-top: .2rem;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card, .bslib-card {
  border: none !important;
  border-radius: var(--radius-l) !important;
  box-shadow: var(--shadow-m) !important;
  background: var(--clr-surface) !important;
  transition: transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease) !important;
  overflow: hidden;
}
.card:hover, .bslib-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--shadow-l) !important;
}
.card-body { padding: 1.75rem !important; }

/* Accent stripe variants */
.hec-card-blue  { border-top: 4px solid var(--clr-primary) !important; }
.hec-card-green { border-left: 4px solid var(--clr-green)  !important; }
.hec-card-login {
  border-top: 4px solid var(--clr-primary) !important;
  box-shadow: var(--shadow-xl) !important;
}

/* ── Section Typography ─────────────────────────────────────── */
.hec-sec-title {
  font-family: var(--font-dsp);
  font-size: 1.45rem; font-weight: 700;
  color: var(--clr-primary) !important;
  margin-bottom: .4rem;
}
.hec-sec-body {
  font-family: var(--font-ui);
  font-size: 20px; line-height: 1.72;
  color: var(--clr-text-2);
}
.hec-note {
  font-size: .88rem; font-weight: 600;
  color: var(--clr-green); line-height: 1.55;
}
/* ── Example Buttons Row ────────────────────────────────────── */
.examples-card {
  background: linear-gradient(135deg, #f8ffff 0%, #f8ffff 100%) !important;
  border-top: 4px solid var(--clr-accent) !important;
}
.examples-card .bttn-material-flat {
  margin: 4px !important;
  background: white !important;
  color: var(--clr-primary) !important;
  border: 1.5px solid rgba(0,71,133,.2) !important;
  box-shadow: var(--shadow-s) !important;
}
.examples-card .bttn-material-flat:hover {
  background: var(--clr-primary) !important;
  color: white !important;
  border-color: var(--clr-primary) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-m) !important;
}
.button-div{
  display:flex;
  gap:8px;
}