:root {
  --primary-color: #2563eb;
  --secondary-color: #3b82f6;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --success: #22c55e;
  --error: #ef4444;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1 0 auto;
}

.navbar {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand img {
  height: 40px;
}

.login-card {
  background: var(--card-bg);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  max-width: 450px;
  width: 100%;
  margin: 4rem auto;
  border: 1px solid rgba(0,0,0,0.05);
}

.login-card h1 {
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  text-align: center;
}

.login-card .subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-label {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.form-control {
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-primary {
  background-color: var(--primary-color);
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.2s;
  width: 100%;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-1px);
}

.footer {
  background: #1e293b;
  color: #f8fafc;
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
}

.footer p {
  margin: 0;
  opacity: 0.8;
  font-size: 0.9rem;
}

/* Result Styles */
.result-container {
  max-width: 900px;
  margin: 2rem auto;
}

.result-header {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-card {
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.table {
  margin-bottom: 0;
}

.table thead th {
  background: #f1f5f9;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 1rem;
}

.table td {
  padding: 1rem;
  vertical-align: middle;
}

.pdf-preview {
  width: 100%;
  height: 400px;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  margin-top: 1rem;
}
