/* ========================================
   Tailwind Custom Components - Modern Design System
   ======================================== */

/* ===== Tailwind Utility Classes ===== */
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.text-gov-primary {
  color: #0D2D4A;
}

.text-gov-secondary {
  color: #1A4971;
}

.text-gray-600 {
  color: #4B5563;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.leading-relaxed {
  line-height: 1.625;
}

.inline-flex {
  display: inline-flex;
}

.items-center {
  align-items: center;
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.group:hover .group-hover\:text-gov-secondary {
  color: #1A4971;
}

.group:hover .group-hover\:gap-2 {
  gap: 0.5rem;
}

/* ===== Modern Card Components ===== */
.tw-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tw-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-color: rgba(13, 45, 74, 0.2);
}

.tw-card-gradient {
  background: linear-gradient(135deg, #0D2D4A 0%, #1A4971 100%);
  color: white;
}

.tw-card-bordered {
  border: 2px solid #0D2D4A;
}

/* ===== Card Header ===== */
.tw-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #F3F4F6;
}

.tw-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0D2D4A;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tw-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0D2D4A, #1A4971);
  color: white;
  border-radius: 0.75rem;
  font-size: 1.25rem;
}

/* ===== Card Body ===== */
.tw-card-body {
  color: #4B5563;
  line-height: 1.75;
  font-size: 1rem;
}

.tw-card-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== Buttons - Tailwind Style ===== */
.tw-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  border: none;
  outline: none;
}

.tw-btn-primary {
  background: linear-gradient(135deg, #0D2D4A, #1A4971);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.tw-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.tw-btn-secondary {
  background: white;
  color: #0D2D4A;
  border: 2px solid #0D2D4A;
}

.tw-btn-secondary:hover {
  background: #0D2D4A;
  color: white;
  transform: translateY(-2px);
}

.tw-btn-outline {
  background: transparent;
  color: #0D2D4A;
  border: 1px solid #D1D5DB;
}

.tw-btn-outline:hover {
  background: #F9FAFB;
  border-color: #0D2D4A;
}

/* ===== Badge Components ===== */
.tw-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.tw-badge-primary {
  background: rgba(13, 45, 74, 0.1);
  color: #0D2D4A;
}

.tw-badge-success {
  background: rgba(34, 197, 94, 0.1);
  color: #16A34A;
}

.tw-badge-warning {
  background: rgba(251, 191, 36, 0.1);
  color: #D97706;
}

.tw-badge-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
}

/* ===== Grid Layouts ===== */
.tw-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.tw-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tw-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
  .tw-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .tw-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .tw-section-title {
    font-size: 2rem;
  }
  
  .tw-card {
    padding: 1.5rem;
  }
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .tw-grid-2,
  .tw-grid-3,
  .tw-grid-4 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .tw-section-title {
    font-size: 1.75rem;
  }
  
  .tw-section-subtitle {
    font-size: 1rem;
  }
  
  .tw-card {
    padding: 1.25rem;
  }
  
  .tw-btn {
    width: 100%;
    justify-content: center;
  }
  
  .tw-stat-value {
    font-size: 2rem;
  }
}

/* ===== Section Headers ===== */
.tw-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.tw-section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0D2D4A;
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

.tw-section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 0.25rem;
  background: linear-gradient(90deg, #0D2D4A, #1A4971);
  border-radius: 9999px;
}

.tw-section-subtitle {
  font-size: 1.125rem;
  color: #6B7280;
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.75;
}

/* ===== Stats Cards ===== */
.tw-stat-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tw-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #0D2D4A, #1A4971);
}

.tw-stat-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.tw-stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0D2D4A;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.tw-stat-label {
  font-size: 0.875rem;
  color: #6B7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== Activity Timeline ===== */
.tw-timeline {
  position: relative;
  padding-right: 2rem;
}

.tw-timeline::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #0D2D4A, #1A4971, transparent);
}

.tw-timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.tw-timeline-item::after {
  content: '';
  position: absolute;
  right: -0.5rem;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  background: #0D2D4A;
  border: 3px solid white;
  border-radius: 9999px;
  box-shadow: 0 0 0 3px rgba(13, 45, 74, 0.1);
}

.tw-timeline-content {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-left: 1.5rem;
}

/* ===== Info Boxes ===== */
.tw-info-box {
  padding: 1.25rem;
  border-radius: 0.75rem;
  border-left: 4px solid;
  margin-bottom: 1rem;
}

.tw-info-box-primary {
  background: rgba(13, 45, 74, 0.05);
  border-color: #0D2D4A;
  color: #0D2D4A;
}

.tw-info-box-success {
  background: rgba(34, 197, 94, 0.05);
  border-color: #16A34A;
  color: #16A34A;
}

.tw-info-box-warning {
  background: rgba(251, 191, 36, 0.05);
  border-color: #D97706;
  color: #D97706;
}

.tw-info-box-danger {
  background: rgba(239, 68, 68, 0.05);
  border-color: #DC2626;
  color: #DC2626;
}

/* ===== Loading States ===== */
.tw-skeleton {
  background: linear-gradient(90deg, #F3F4F6 25%, #E5E7EB 50%, #F3F4F6 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 0.5rem;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ===== Animations ===== */
.tw-fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tw-slide-in-right {
  animation: slideInRight 0.5s ease-in-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-2rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== Utility Classes ===== */
.tw-text-gradient {
  background: linear-gradient(135deg, #0D2D4A, #1A4971);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tw-bg-gradient {
  background: linear-gradient(135deg, #0D2D4A 0%, #1A4971 100%);
}

.tw-shadow-soft {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.tw-shadow-medium {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.tw-shadow-large {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* ===== Responsive Utilities ===== */
.tw-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.tw-section {
  padding: 4rem 0;
}

@media (max-width: 768px) {
  .tw-section {
    padding: 2.5rem 0;
  }
}
