/* style.css – Premium visual design system for SAU Fee Verification */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Modern Dark HSL Theme */
  --bg-color: #080c14;
  --primary: hsl(243, 75%, 59%); /* Indigo */
  --primary-hover: hsl(243, 75%, 65%);
  --accent: hsl(38, 92%, 50%); /* Amber/Gold */
  --accent-hover: hsl(38, 92%, 56%);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Glassmorphism settings */
  --glass-bg: rgba(15, 23, 42, 0.45);
  --glass-bg-hover: rgba(15, 23, 42, 0.55);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-focus: rgba(79, 70, 229, 0.4);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  
  /* Semantic Colors */
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-color);
  min-height: 100vh;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 1.5rem;
  background: radial-gradient(circle at 50% 0%, #0f172a 0%, #080b11 100%);
}

/* Background Glowing Blobs */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  animation: float-blob 25s infinite alternate ease-in-out;
}

.blob-1 {
  top: -10%;
  left: 10%;
  width: 450px;
  height: 450px;
  background: var(--primary);
  animation-duration: 20s;
}

.blob-2 {
  bottom: 10%;
  right: 15%;
  width: 500px;
  height: 500px;
  background: hsl(280, 75%, 50%); /* Purple */
  animation-duration: 28s;
  animation-delay: -5s;
}

.blob-3 {
  top: 40%;
  left: 45%;
  width: 350px;
  height: 350px;
  background: var(--accent);
  animation-duration: 22s;
  animation-delay: -10s;
  opacity: 0.15;
}

@keyframes float-blob {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(80px, 60px) scale(1.1);
  }
  100% {
    transform: translate(-40px, -80px) scale(0.9);
  }
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Typography & Links */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

h1 {
  font-size: 2.25rem;
  background: linear-gradient(135deg, #ffffff 30%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  border-left: 4px solid var(--accent);
  padding-left: 0.75rem;
}

p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Glassmorphism Containers */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  width: 100%;
  max-width: 850px;
  margin-bottom: 2rem;
  animation: fade-in-up 0.6s ease-out;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.glass:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg);
}

/* Navigation Header */
.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  border-radius: 1rem;
}

.nav-header h1 {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-header h1 svg {
  color: var(--accent);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="password"],
select {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.5rem; /* left padding space for icon */
  border-radius: 0.75rem;
  border: 1px solid var(--glass-border);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
  outline: none;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="password"]:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
  background: rgba(15, 23, 42, 0.8);
}

/* Select element customization */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

/* Input Icon container */
.input-with-icon {
  position: relative;
}

.input-with-icon svg {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.15rem;
  height: 1.15rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.3s;
}

.input-with-icon input:focus ~ svg,
.input-with-icon select:focus ~ svg {
  color: var(--primary);
}

/* Hide number input spinner arrows */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* File Upload drag and drop style */
.file-upload-wrapper {
  position: relative;
  width: 100%;
}

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

.file-upload-card {
  border: 2px dashed var(--glass-border);
  border-radius: 0.75rem;
  padding: 2rem 1rem;
  text-align: center;
  background: rgba(15, 23, 42, 0.3);
  transition: border-color 0.3s, background-color 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.file-upload-wrapper:hover .file-upload-card {
  border-color: var(--primary);
  background: rgba(79, 70, 229, 0.05);
}

.file-upload-card svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--text-muted);
  transition: color 0.3s, transform 0.3s;
}

.file-upload-wrapper:hover .file-upload-card svg {
  color: var(--primary);
  transform: translateY(-3px);
}

.file-upload-card span {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.file-upload-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Image Preview */
.preview-img {
  max-width: 100%;
  max-height: 180px;
  border-radius: 0.5rem;
  border: 1px solid var(--glass-border);
  margin-top: 1rem;
  object-fit: contain;
  box-shadow: var(--shadow-sm);
  display: block;
}

/* Buttons */
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #312e81 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.45);
  background: linear-gradient(135deg, var(--primary-hover) 0%, #3730a3 100%);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #b45309 100%);
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, var(--accent-hover) 0%, #d97706 100%);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

/* Split Hero Layout */
.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Steps list card styling */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: background-color 0.3s;
}

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

.feature-icon-wrapper {
  background: rgba(79, 70, 229, 0.15);
  border-radius: 0.5rem;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.feature-icon-wrapper svg {
  width: 1.25rem;
  height: 1.25rem;
}

.feature-content h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  font-family: var(--font-heading);
}

.feature-content p {
  font-size: 0.85rem;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 12, 20, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  border-radius: 1.5rem;
  width: 90%;
  max-width: 600px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-content h2 {
  margin-bottom: 0.5rem;
}

.modal-desc {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

/* Status Notifications */
.status-msg {
  padding: 1rem;
  border-radius: 0.75rem;
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 1rem;
  display: none;
  animation: pulse-glow 2s infinite alternate;
}

.status-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.status-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* Table and Admin Dashboard */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-actions {
  display: flex;
  gap: 0.75rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-top: 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--glass-border);
}

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

thead {
  background: rgba(255, 255, 255, 0.03);
}

th {
  padding: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--glass-border);
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

tr {
  transition: background-color 0.2s;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

/* Badge Status Styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.badge-pending {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

/* Dashboard Summary Cards */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.summary-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.3s;
}

.summary-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.12);
}

.summary-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(79, 70, 229, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.summary-card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.summary-card-info h4 {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-card-info p {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--text-primary);
}

/* Animations */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Action Links */
.action-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s;
}

.action-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.action-link svg {
  width: 1rem;
  height: 1rem;
}

/* Login Page specific styling */
.login-card {
  max-width: 450px;
  margin: 6rem auto 0 auto;
}

.login-card h1 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.login-msg {
  text-align: center;
  color: var(--error);
  font-size: 0.9rem;
  margin-top: 1rem;
}
