@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --accent: #10b981;
  --text-dark: #0f172a;
  --text-light: #64748b;
  --bg-color: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Navigation */
nav {
  background: var(--white);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  margin-left: 2rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.btn {
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background: var(--primary-hover);
}

.btn-accent { background: var(--accent); }
.btn-accent:hover { background: #059669; }

/* Sections */
section { padding: 5rem 5%; }
.text-center { text-align: center; }

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 8rem 5%;
  background: linear-gradient(135deg, #eff6ff 0%, var(--white) 100%);
}

.hero h1 { font-size: 3.5rem; margin-bottom: 1.5rem; color: var(--text-dark); }
.hero p { font-size: 1.25rem; color: var(--text-light); max-width: 600px; margin-bottom: 2.5rem; }

/* Cards Layout */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.card h3 { color: var(--primary); margin-bottom: 1rem; }

/* Forms */
.form-container {
  max-width: 600px;
  margin: 3rem auto;
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.9rem; }
.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.3s;
}
.form-control:focus { outline: none; border-color: var(--primary); }

.hidden { display: none; }

/* Admin Table */
.admin-container { max-width: 1000px; margin: 3rem auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
  overflow: hidden;
}
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: #f1f5f9; font-weight: 600; }
.badge { padding: 0.25rem 0.5rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.badge.low { background: #dcfce7; color: #166534; }
.badge.medium { background: #fef08a; color: #854d0e; }
.badge.high { background: #fee2e2; color: #991b1b; }
.badge.pending { background: #e2e8f0; color: #475569; }
.badge.approved { background: #dcfce7; color: #166534; }
.badge.rejected { background: #fee2e2; color: #991b1b; }

.action-btn { padding: 0.4rem 0.8rem; font-size: 0.8rem; margin-right: 0.5rem; }
.btn-reject { background: #ef4444; color: white; border: none; border-radius: 4px; cursor: pointer; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 2.5rem; }
}