:root {
  --primary: #0ea5e9;
  --primary-hover: #0284c7;
  --bg-gradient-1: #8fd3f4;
  --bg-gradient-2: #84fab0;
  --card-bg: rgba(255, 255, 255, 0.85);
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: rgba(255, 255, 255, 0.5);
  --accent: #38bdf8;
  --accent-hover: #0ea5e9;
  --danger: #ef4444;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #7dd3fc 100%);
  position: relative;
  overflow-x: hidden;
}

/* Clouds & Airplane Animations */
.sky-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

/* Cloud base style */
.cloud {
  background: #ffffff;
  border-radius: 50px;
  position: absolute;
  opacity: 0.8;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
  animation: floatCloud linear infinite;
}

/* Building a cloud shape with pseudo elements */
.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
}

.cloud::before {
  width: 60px;
  height: 60px;
  top: -30px;
  left: 20px;
}

.cloud::after {
  width: 80px;
  height: 80px;
  top: -40px;
  right: 20px;
}

/* Specific Clouds */
.cloud-1 {
  width: 150px;
  height: 50px;
  top: 15%;
  left: -200px;
  transform: scale(0.8);
  animation-duration: 45s;
}

.cloud-2 {
  width: 200px;
  height: 60px;
  top: 30%;
  left: -300px;
  transform: scale(1.2);
  animation-duration: 60s;
  animation-delay: -10s;
  opacity: 0.6;
}

.cloud-3 {
  width: 120px;
  height: 40px;
  top: 60%;
  left: -150px;
  animation-duration: 35s;
  animation-delay: -20s;
}

.cloud-4 {
  width: 250px;
  height: 75px;
  top: 75%;
  left: -400px;
  transform: scale(0.6);
  animation-duration: 50s;
  animation-delay: -5s;
}

@keyframes floatCloud {
  from {
    left: -300px;
  }

  to {
    left: 110vw;
  }
}

/* Airplane */
.airplane {
  position: absolute;
  top: 25%;
  left: -100px;
  font-size: 2.5rem;
  color: #ffffff;
  filter: drop-shadow(2px 4px 4px rgba(0, 0, 0, 0.1));
  animation: flyPlane 15s linear infinite;
  animation-delay: 2s;
  z-index: 0;
  display: flex;
  align-items: center;
  gap: 15px;
  /* for contrail */
}

.contrail {
  width: 150px;
  height: 4px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8));
  border-radius: 4px;
}

@keyframes flyPlane {
  from {
    transform: translateX(-200px) translateY(50px) rotate(15deg) scale(0.8);
  }

  to {
    transform: translateX(120vw) translateY(-50px) rotate(15deg) scale(0.8);
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
  position: relative;
  z-index: 10;
}

/* Glassmorphism utilities - light mode */
.glass-panel {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 0 10px 30px -5px rgba(14, 165, 233, 0.15), 0 4px 6px -2px rgba(14, 165, 233, 0.05);
}

/* Login Page styles */
.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
  position: relative;
  z-index: 10;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem;
  animation: slideUp 0.5s ease-out;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h1 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.login-header p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  color: var(--text-main);
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
  transform: translateY(-1px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #38bdf8);
  color: white;
  width: 100%;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
}

.btn-danger {
  background: white;
  color: var(--danger);
  border: 1px solid #fecaca;
}

.btn-danger:hover {
  background: #fef2f2;
  border-color: var(--danger);
}

/* Dashboard Styles */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px dashed rgba(14, 165, 233, 0.2);
  animation: fadeIn 0.5s ease-out;
}

.dashboard-title h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

.dashboard-title p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  animation: slideUp 0.6s ease-out;
}

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

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

.info-card {
  padding: 2rem;
}

.info-card h2 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary);
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 0.75rem;
}

.info-list {
  list-style: none;
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px dashed #e2e8f0;
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--text-muted);
  font-weight: 500;
}

.info-value {
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
  max-width: 60%;
}

.docs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.doc-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.doc-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 16px rgba(14, 165, 233, 0.1);
  transform: translateY(-2px);
}

.doc-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.doc-icon {
  width: 52px;
  height: 52px;
  background: #e0f2fe;
  color: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.doc-details h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.doc-details p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.alert-error {
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fecaca;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  text-align: center;
  font-weight: 500;
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}