/* ============================================
   MODERN BOARD STYLES
   Blue-themed governance portal styling
   ============================================ */

:root {
  --primary-gradient: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  --success-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --info-gradient: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
  --warning-gradient: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  --secondary-gradient: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
  --bg-gradient: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

/* ============================================
   BODY & BACKGROUND
   ============================================ */
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-gradient);
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(30, 64, 175, 0.15) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.main {
  position: relative;
  z-index: 1;
}

/* ============================================
   HERO CARD STYLES
   ============================================ */
.hero-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 10px 40px rgba(30, 64, 175, 0.1);
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.welcome-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
}

.tenant-info {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 50px;
  margin-top: 1rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.tenant-badge {
  background: var(--primary-gradient);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ============================================
   ASSESSMENT CARDS
   ============================================ */
.assessment-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  border: 1px solid rgba(59, 130, 246, 0.15);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(30, 64, 175, 0.08);
}

.assessment-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-gradient);
  transition: height 0.3s ease;
}

.assessment-card:hover {
  box-shadow: 0 12px 40px rgba(30, 64, 175, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.assessment-card:hover::before {
  height: 100%;
  opacity: 0.05;
}

.card-icon-wrapper {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--card-gradient);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.assessment-card:hover .card-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.card-icon-wrapper i {
  font-size: 2rem;
  color: white;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.assessment-card .small,
.assessment-card p {
  position: relative;
  z-index: 1;
}

.assessment-card .btn {
  position: relative;
  z-index: 2;
}

/* Card Color Variants */
.variant-primary { --card-gradient: var(--primary-gradient); }
.variant-success { --card-gradient: var(--success-gradient); }
.variant-info { --card-gradient: var(--info-gradient); }
.variant-secondary { --card-gradient: var(--secondary-gradient); }
.variant-warning { --card-gradient: var(--warning-gradient); }

/* ============================================
   SECTION CARDS (Tasks, Results, etc)
   ============================================ */
.section-card {
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.15);
  box-shadow: 0 4px 20px rgba(30, 64, 175, 0.08);
}

.section-title {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #64748b;
}

/* ============================================
   ENHANCED BOOTSTRAP BUTTONS
   ============================================ */
.btn-primary {
  background: var(--primary-gradient);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}

.btn-success {
  background: var(--success-gradient);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
}

.btn-info {
  background: var(--info-gradient);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-info:hover {
  box-shadow: 0 6px 25px rgba(6, 182, 212, 0.4);
  background: linear-gradient(135deg, #0e7490 0%, #0891b2 100%);
}

.btn-secondary {
  background: var(--secondary-gradient);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.btn-secondary:hover {
  box-shadow: 0 6px 25px rgba(107, 114, 128, 0.4);
  background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
}

.btn-warning {
  background: var(--warning-gradient);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
  color: white;
}

.btn-warning:hover {
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  color: white;
}

.btn-outline-primary {
  border: 2px solid #3b82f6;
  color: #3b82f6;
  border-radius: 50px;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--primary-gradient);
  border-color: transparent;
  color: white;
}

.btn-outline-secondary {
  border: 2px solid #6b7280;
  color: #6b7280;
  border-radius: 50px;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  background: var(--secondary-gradient);
  color: white;
  border-color: transparent;
}

/* ============================================
   ALERTS
   ============================================ */
.alert-warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: none;
  border-radius: 12px;
  border-left: 4px solid #f59e0b;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}

.alert-warning a {
  color: #d97706;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid #d97706;
}

.alert-warning a:hover {
  color: #b45309;
  border-bottom-color: #b45309;
}

.alert-info {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: none;
  border-radius: 12px;
  border-left: 4px solid #3b82f6;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

.alert-success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border: none;
  border-radius: 12px;
  border-left: 4px solid #10b981;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}

.alert-danger {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: none;
  border-radius: 12px;
  border-left: 4px solid #ef4444;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.15);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .welcome-text {
    font-size: 1.25rem;
  }

  .assessment-card {
    padding: 1.5rem;
  }
}