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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  color: #333;
  -webkit-font-smoothing: antialiased;
}

/* Login page */
.login-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.login-card h1 {
  font-size: 24px;
  text-align: center;
  margin-bottom: 4px;
}

.login-card .subtitle {
  color: #888;
  font-size: 14px;
  text-align: center;
  margin-bottom: 24px;
}

/* Dashboard */
.dashboard-container {
  min-height: 100vh;
  padding: 24px;
  display: flex;
  justify-content: center;
}

.dashboard-content {
  max-width: 700px;
  width: 100%;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.dashboard-header h1 {
  font-size: 24px;
  margin: 0;
}

.dashboard-header .email {
  color: #888;
  font-size: 14px;
  margin-top: 4px;
}

/* Cards */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card-header h3 {
  font-size: 16px;
  margin: 0;
}

.card-header .meta {
  margin: 4px 0 0;
  color: #888;
  font-size: 13px;
}

.card-header .requester {
  margin: 2px 0 0;
  color: #aaa;
  font-size: 12px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 40px;
}

.empty-state .icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-state h2 {
  font-size: 18px;
  margin-bottom: 4px;
}

.empty-state p {
  color: #888;
}

/* Email sent state */
.sent-state {
  text-align: center;
}

.sent-state .icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.sent-state h1 {
  font-size: 22px;
  margin-bottom: 8px;
}

.sent-state p {
  color: #666;
  line-height: 1.5;
}

/* Timeline */
.timeline {
  margin: 16px 0;
}

.timeline-step {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.timeline-step:last-child {
  border-bottom: none;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.timeline-dot.approved { background: #22c55e; }
.timeline-dot.rejected { background: #ef4444; }
.timeline-dot.pending { background: #f59e0b; }
.timeline-dot.waiting { background: #d1d5db; }

.timeline-label {
  font-size: 14px;
  font-weight: 600;
}

.timeline-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  color: #fff;
  margin-left: 8px;
}

.timeline-badge.approved { background: #22c55e; }
.timeline-badge.rejected { background: #ef4444; }
.timeline-badge.pending { background: #f59e0b; }
.timeline-badge.waiting { background: #d1d5db; }

.timeline-email {
  margin: 4px 0 0;
  color: #888;
  font-size: 13px;
}

.timeline-date {
  margin: 2px 0 0;
  color: #aaa;
  font-size: 12px;
}

.timeline-comment {
  margin: 6px 0 0;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 13px;
  color: #555;
  font-style: italic;
  border-left: 3px solid #6366f1;
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: #6366f1;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: #6366f1;
  color: #fff;
  width: 100%;
  padding: 12px;
}

.btn-success {
  background: #22c55e;
  color: #fff;
}

.btn-danger {
  background: #ef4444;
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
}

.btn-link {
  background: none;
  border: none;
  color: #6366f1;
  cursor: pointer;
  text-decoration: underline;
  font-size: 13px;
}

.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* Error */
.error-text {
  color: #ef4444;
  font-size: 14px;
  margin-bottom: 12px;
}

/* Loading */
.loading {
  text-align: center;
  color: #666;
  padding: 40px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  color: #999;
  font-size: 12px;
}
