/**
 * TRA-Style Professional Theme
 * Clean, professional blue & white design inspired by Tanzania Revenue Authority
 * Use this CSS file across all pages for consistent professional appearance
 */

/* ============================================
   BASE STYLES
   ============================================ */
* {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f5f7fa;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  color: #1e293b;
}

/* ============================================
   COLOR SCHEME - TRA Blue & White
   ============================================ */
:root {
  --tra-primary: #1e40af;
  --tra-primary-light: #3b82f6;
  --tra-primary-dark: #1e3a8a;
  --tra-secondary: #64748b;
  --tra-accent: #0ea5e9;
  --tra-success: #10b981;
  --tra-warning: #f59e0b;
  --tra-danger: #ef4444;
  --tra-white: #ffffff;
  --tra-gray-50: #f8fafc;
  --tra-gray-100: #f1f5f9;
  --tra-gray-200: #e2e8f0;
  --tra-gray-300: #cbd5e1;
  --tra-gray-600: #475569;
  --tra-gray-700: #334155;
  --tra-gray-800: #1e293b;
  --tra-gray-900: #0f172a;
}

/* ============================================
   BACKGROUND PATTERNS
   ============================================ */
.tra-background {
  background: #f5f7fa;
}

.tra-background::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.03) 0%, rgba(59, 130, 246, 0.03) 100%);
  z-index: 0;
  pointer-events: none;
}

/* ============================================
   HEADER STYLES
   ============================================ */
.tra-header {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  position: relative;
  overflow: hidden;
  color: white;
}

.tra-header-gradient {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

/* ============================================
   CARDS & CONTAINERS
   ============================================ */
.tra-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tra-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.15);
  border-color: #3b82f6;
}

.tra-glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ============================================
   BUTTONS
   ============================================ */
.tra-btn-primary {
  background: #1e40af;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.tra-btn-primary:hover {
  background: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.tra-btn-secondary {
  background: white;
  color: #1e40af;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #1e40af;
  cursor: pointer;
}

.tra-btn-secondary:hover {
  background: #1e40af;
  color: white;
  transform: translateY(-2px);
}

.tra-btn-outline {
  background: transparent;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid white;
  cursor: pointer;
}

.tra-btn-outline:hover {
  background: white;
  color: #1e40af;
}

/* ============================================
   BADGES & LABELS
   ============================================ */
.tra-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #1e40af;
  color: white;
  border-radius: 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(30, 64, 175, 0.2);
}

.tra-badge-light {
  background: #dbeafe;
  color: #1e40af;
}

.tra-badge-success {
  background: #10b981;
  color: white;
}

.tra-badge-warning {
  background: #f59e0b;
  color: white;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.tra-heading {
  color: #1e40af;
  font-weight: 700;
}

.tra-heading-white {
  color: white;
  font-weight: 700;
}

.tra-text-primary {
  color: #1e40af;
}

.tra-text-secondary {
  color: #64748b;
}

.tra-text-muted {
  color: #94a3b8;
}

/* ============================================
   AVATARS & IMAGES
   ============================================ */
.tra-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
  border: 3px solid #ffffff;
  transition: all 0.3s ease;
}

.tra-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
}

.tra-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.3);
}

.tra-avatar i {
  font-size: 2.5rem;
  color: white;
}

/* ============================================
   FORMS
   ============================================ */
.tra-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  background: white;
}

.tra-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.tra-input:hover {
  border-color: #cbd5e1;
}

.tra-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  resize: vertical;
  background: white;
}

.tra-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.tra-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  background: white;
}

.tra-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ============================================
   STATISTICS CARDS
   ============================================ */
.tra-stat-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(30, 64, 175, 0.2);
  transition: all 0.3s ease;
  padding: 1.5rem;
  border-radius: 0.75rem;
}

.tra-stat-card:hover {
  background: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.15);
  border-color: #3b82f6;
}

.tra-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e40af;
}

.tra-stat-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

/* ============================================
   SOCIAL ICONS
   ============================================ */
.tra-social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3b82f6;
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
}

.tra-social-icon:hover {
  background: #1e40af;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.tra-social-icon-linkedin {
  background: #0077b5;
}

.tra-social-icon-twitter {
  background: #1da1f2;
}

.tra-social-icon-facebook {
  background: #1877f2;
}

.tra-social-icon-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes tra-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tra-fade-in-up {
  animation: tra-fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.tra-delay-1 { animation-delay: 0.1s; }
.tra-delay-2 { animation-delay: 0.2s; }
.tra-delay-3 { animation-delay: 0.3s; }
.tra-delay-4 { animation-delay: 0.4s; }

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: #3b82f6;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1e40af;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.tra-shadow-sm {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tra-shadow-md {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tra-shadow-lg {
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.15);
}

.tra-border-blue {
  border-color: #3b82f6;
}

.tra-bg-blue {
  background-color: #1e40af;
}

.tra-text-blue {
  color: #1e40af;
}

.tra-rounded {
  border-radius: 0.5rem;
}

.tra-rounded-lg {
  border-radius: 0.75rem;
}

.tra-rounded-xl {
  border-radius: 1rem;
}

.tra-rounded-full {
  border-radius: 9999px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .tra-card {
    padding: 1rem;
  }
  
  .tra-btn-primary,
  .tra-btn-secondary,
  .tra-btn-outline {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
  
  .tra-avatar {
    width: 70px;
    height: 70px;
  }
}

/* ============================================
   SMOOTH SCROLL
   ============================================ */
html {
  scroll-behavior: smooth;
}

/* ============================================
   SECTION SPACING
   ============================================ */
.tra-section {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .tra-section {
    padding: 4rem 0;
  }
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.tra-grid {
  display: grid;
  gap: 1.5rem;
}

.tra-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.tra-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.tra-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .tra-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .tra-grid-2,
  .tra-grid-3,
  .tra-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tra-grid-2,
  .tra-grid-3,
  .tra-grid-4 {
    grid-template-columns: 1fr;
  }
}

