/* Ireland Customs Data Processing Dashboard - Custom Styles */

/* Variables for consistent theming */
:root {
  --ireland-green: #169B62;
  --ireland-orange: #FF883E;
  --northern-blue: #012169;
  --custom-gray: #F8FAFC;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --border-color: #E5E7EB;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
}

/* Base improvements */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
}

/* Enhanced card styles */
.card-hover {
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px var(--shadow-color);
}

/* Custom button styles */
.btn-primary {
  background: linear-gradient(135deg, var(--ireland-green) 0%, #0d7a4e 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(22, 155, 98, 0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--northern-blue) 0%, #001a4d 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(1, 33, 105, 0.3);
}

/* Loading animations */
.loading-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--ireland-green);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Progress bars */
.progress-bar {
  background: linear-gradient(90deg, #4ade80 0%, #22c55e 100%);
  transition: width 0.3s ease-in-out;
}

.status-processing {
  background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
}

.status-completed {
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.status-failed {
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

/* Upload dropzone enhancements */
.upload-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: 0.75rem;
  padding: 3rem;
  text-align: center;
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
}

.upload-dropzone::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--ireland-green) 0%, var(--northern-blue) 100%);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: -1;
}

.upload-dropzone:hover {
  border-color: var(--ireland-green);
  background-color: rgba(22, 155, 98, 0.05);
  transform: scale(1.02);
}

.upload-dropzone.drag-over {
  border-color: var(--ireland-green);
  background-color: rgba(22, 155, 98, 0.1);
}

.upload-dropzone.drag-over::before {
  opacity: 0.05;
}

/* Statistics cards */
.stat-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px var(--shadow-color);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ireland-green) 0%, var(--northern-blue) 100%);
}

.stat-card:hover {
  box-shadow: 0 5px 15px var(--shadow-color);
  transform: translateY(-2px);
}

/* Table enhancements */
.custom-table {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px var(--shadow-color);
}

.custom-table th {
  background-color: #f9fafb;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.custom-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.custom-table tr:hover {
  background-color: #f9fafb;
}

/* Classification badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-ie {
  background-color: #dcfce7;
  color: #166534;
}

.badge-ni {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.badge-ambiguous {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-other {
  background-color: #f3f4f6;
  color: #374151;
}

/* Notifications */
.notification {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  min-width: 300px;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px var(--shadow-color);
  transition: all 0.3s ease-in-out;
}

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

.notification.error {
  background-color: #ef4444;
  color: white;
}

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

.notification.info {
  background-color: #3b82f6;
  color: white;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .stat-card {
    padding: 1rem;
  }
  
  .upload-dropzone {
    padding: 2rem 1rem;
  }
  
  .custom-table {
    font-size: 0.875rem;
  }
  
  .custom-table th,
  .custom-table td {
    padding: 0.75rem 1rem;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--ireland-green);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0d7a4e;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--ireland-green);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .card-hover {
    box-shadow: none !important;
    transform: none !important;
  }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --border-color: #374151;
    --shadow-color: rgba(0, 0, 0, 0.3);
  }
}