/* Base styles */
:root {
    --primary: #ef4444;
    --primary-dark: #dc2626;
  }
  
  body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #111827;
    background-color: #f9fafb;
  }
  
  /* Layout */
  .min-h-screen {
    min-height: 100vh;
  }
  
  .flex {
    display: flex;
  }
  
  .items-center {
    align-items: center;
  }
  
  .justify-center {
    justify-content: center;
  }
  
  .flex-col {
    flex-direction: column;
  }
  
  .flex-1 {
    flex: 1 1 0%;
  }
  
  .gap-2 {
    gap: 0.5rem;
  }
  
  .gap-3 {
    gap: 0.75rem;
  }
  
  .space-y-1 > * + * {
    margin-top: 0.25rem;
  }
  
  .space-y-6 > * + * {
    margin-top: 1.5rem;
  }
  
  /* Positioning */
  .fixed {
    position: fixed;
  }
  
  .inset-y-0 {
    top: 0;
    bottom: 0;
  }
  
  .left-0 {
    left: 0;
  }
  
  .relative {
    position: relative;
  }
  
  .absolute {
    position: absolute;
  }
  
  .inset-y-0 {
    top: 0;
    bottom: 0;
  }
  
  .left-0 {
    left: 0;
  }
  
  .pl-64 {
    padding-left: 16rem;
  }
  
  /* Sizing */
  .w-full {
    width: 100%;
  }
  
  .max-w-md {
    max-width: 28rem;
  }
  
  .w-64 {
    width: 16rem;
  }
  
  .w-8 {
    width: 2rem;
  }
  
  .h-8 {
    height: 2rem;
  }
  
  .w-12 {
    width: 3rem;
  }
  
  .h-12 {
    height: 3rem;
  }
  
  .w-5 {
    width: 1.25rem;
  }
  
  .h-5 {
    height: 1.25rem;
  }
  
  .w-4 {
    width: 1rem;
  }
  
  .h-4 {
    height: 1rem;
  }
  
  .h-16 {
    height: 4rem;
  }
  
  /* Spacing */
  .p-4 {
    padding: 1rem;
  }
  
  .p-6 {
    padding: 1.5rem;
  }
  
  .p-8 {
    padding: 2rem;
  }
  
  .p-3 {
    padding: 0.75rem;
  }
  
  .px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  
  .px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  
  .px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .pl-3 {
    padding-left: 0.75rem;
  }
  
  .pl-10 {
    padding-left: 2.5rem;
  }
  
  .pr-3 {
    padding-right: 0.75rem;
  }
  
  .mb-1 {
    margin-bottom: 0.25rem;
  }
  
  .mb-4 {
    margin-bottom: 1rem;
  }
  
  .mb-8 {
    margin-bottom: 2rem;
  }
  
  .mt-1 {
    margin-top: 0.25rem;
  }
  
  .mt-2 {
    margin-top: 0.5rem;
  }
  
  .mt-4 {
    margin-top: 1rem;
  }
  
  .ml-2 {
    margin-left: 0.5rem;
  }
  
  .ml-3 {
    margin-left: 0.75rem;
  }
  
  /* Typography */
  .text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
  }
  
  .text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
  
  .text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
  
  .text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
  
  .text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }
  
  .text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
  
  .font-medium {
    font-weight: 500;
  }
  
  .font-semibold {
    font-weight: 600;
  }
  
  .font-bold {
    font-weight: 700;
  }
  
  .text-center {
    text-align: center;
  }
  
  /* Colors */
  .bg-white {
    background-color: white;
  }
  
  .bg-gray-50 {
    background-color: #f9fafb;
  }
  
  .bg-gray-100 {
    background-color: #f3f4f6;
  }
  
  .bg-red-50 {
    background-color: #fef2f2;
  }
  
  .bg-red-600 {
    background-color: #dc2626;
  }
  
  .bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
  }
  
  .from-red-400 {
    --tw-gradient-from: #f87171;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(248, 113, 113, 0));
  }
  
  .to-red-600 {
    --tw-gradient-to: #dc2626;
  }
  
  .text-white {
    color: white;
  }
  
  .text-gray-400 {
    color: #9ca3af;
  }
  
  .text-gray-500 {
    color: #6b7280;
  }
  
  .text-gray-600 {
    color: #4b5563;
  }
  
  .text-gray-700 {
    color: #374151;
  }
  
  .text-gray-900 {
    color: #111827;
  }
  
  .text-red-600 {
    color: #dc2626;
  }
  
  .border-gray-200 {
    border-color: #e5e7eb;
  }
  
  .border-gray-300 {
    border-color: #d1d5db;
  }
  
  .border-red-200 {
    border-color: #fecaca;
  }
  
  .border-red-600 {
    border-color: #dc2626;
  }
  
  .border-t-transparent {
    border-top-color: transparent;
  }
  
  /* Borders */
  .border {
    border-width: 1px;
  }
  
  .border-t {
    border-top-width: 1px;
  }
  
  .border-r {
    border-right-width: 1px;
  }
  
  .border-b {
    border-bottom-width: 1px;
  }
  
  .border-4 {
    border-width: 4px;
  }
  
  .rounded-md {
    border-radius: 0.375rem;
  }
  
  .rounded-lg {
    border-radius: 0.5rem;
  }
  
  .rounded-full {
    border-radius: 9999px;
  }
  
  /* Effects */
  .shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  }
  
  .shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  }
  
  .shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  }
  
  .shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  }
  
  /* Transitions */
  .transition-colors {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
  }
  
  /* Animations */
  .animate-spin {
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
  
  /* Hover/Focus States */
  .hover\:bg-gray-100:hover {
    background-color: #f3f4f6;
  }
  
  .hover\:bg-red-700:hover {
    background-color: #b91c1c;
  }
  
  .hover\:text-red-500:hover {
    color: #ef4444;
  }
  
  .focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
  }
  
  .focus\:ring-2:focus {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
  }
  
  .focus\:ring-offset-2:focus {
    --tw-ring-offset-width: 2px;
  }
  
  .focus\:ring-red-500:focus {
    --tw-ring-color: #ef4444;
  }
  
  .focus\:border-red-500:focus {
    border-color: #ef4444;
  }
  
  /* Grid */
  .grid {
    display: grid;
  }
  
  .grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  
  .gap-6 {
    gap: 1.5rem;
  }
  
  /* Responsive */
  @media (min-width: 768px) {
    .md\:grid-cols-2 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:p-8 {
      padding: 2rem;
    }
  }
  
  @media (min-width: 1024px) {
    .lg\:grid-cols-4 {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }
  
  /* Custom Components */
  .btn-primary {
    padding: 0.5rem 1rem;
    background-color: #dc2626;
    color: white;
    border-radius: 0.375rem;
    font-weight: 500;
    transition-property: background-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
  }
  
  .btn-primary:hover {
    background-color: #b91c1c;
  }
  
  .btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ef4444;
  }
  
  .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  
  /* .input-field {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  }
  
  .input-field:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 1px #ef4444;
  } */
 
  
  /* Dashboard-specific CSS */

/* Layout */
.min-h-screen {
  min-height: 100vh;
}

.bg-gray-50 {
  background-color: #f9fafb;
}

/* Sidebar */
.fixed {
  position: fixed;
}

.inset-y-0 {
  top: 0;
  bottom: 0;
}

.left-0 {
  left: 0;
}

.w-64 {
  width: 16rem;
}

.bg-white {
  background-color: white;
}

.border-r {
  border-right-width: 1px;
}

.border-gray-200 {
  border-color: #e5e7eb;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.h-full {
  height: 100%;
}

/* Logo Section */
.h-16 {
  height: 4rem;
}

.border-b {
  border-bottom-width: 1px;
}

.items-center {
  align-items: center;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-red-500 {
  --tw-gradient-from: #ef4444;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(239, 68, 68, 0));
}

.to-red-600 {
  --tw-gradient-to: #dc2626;
}

.w-8 {
  width: 2rem;
}

.h-8 {
  height: 2rem;
}

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

.justify-center {
  justify-content: center;
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.w-5 {
  width: 1.25rem;
}

.h-5 {
  height: 1.25rem;
}

.text-white {
  color: white;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.font-semibold {
  font-weight: 600;
}

.text-gray-900 {
  color: #111827;
}

.block {
  display: block;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-gray-500 {
  color: #6b7280;
}

/* Navigation */
.flex-1 {
  flex: 1 1 0%;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.space-y-1 > * + * {
  margin-top: 0.25rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.text-gray-700 {
  color: #374151;
}

.hover\:bg-gray-100:hover {
  background-color: #f3f4f6;
}

.transition-colors {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.bg-red-50 {
  background-color: #fef2f2;
}

.text-red-600 {
  color: #dc2626;
}

.font-medium {
  font-weight: 500;
}

/* Sign Out Button */
.p-4 {
  padding: 1rem;
}

input[type="date"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: white;
  color: #333;
  outline: none;
  transition: border 0.3s;
  font-size: 16px;
}

input[type="date"]:focus {
  border-color: #dc2626;
  box-shadow: 0 0 5px rgba(220, 38, 38, 0.3);
}

/* Reports Page Styles */

/* Layout */
.reports-container {
  min-height: 100vh;
  background-color: #f9fafb;
  padding: 2rem 0;
}

.reports-content {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.reports-header {
  margin-bottom: 2rem;
}

.reports-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
}

.reports-subtitle {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Form Styles */
.report-form {
  background-color: white;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.form-section {
  padding: 1.5rem;
}

.form-section + .form-section {
  border-top: 1px solid #e5e7eb;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: #111827;
  margin-bottom: 1rem;
}

/* Input Groups */
.input-group {
  margin-bottom: 1rem;
}

.input-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.input-field {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #111827;
  transition: border-color 0.15s ease-in-out;
}

.input-field:focus {
  outline: none;
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Date Input Specific */
.date-input-wrapper {
  position: relative;
}

.date-input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.date-input {
  padding-left: 2.5rem;
}

/* Select Styles */
.select-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* Button Styles */
.form-actions {
  padding: 1rem 1.5rem;
  background-color: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-radius: 0 0 0.5rem 0.5rem;
  display: flex;
  justify-content: flex-end;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: #ef4444;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}

.submit-button:hover {
  background-color: #dc2626;
}

.submit-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px white, 0 0 0 4px #ef4444;
}

.submit-button svg {
  margin-right: 0.5rem;
  width: 1.25rem;
  height: 1.25rem;
}

/* Preview Panel */
.preview-panel {
  background-color: white;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
}

.preview-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: #111827;
  margin-bottom: 1rem;
}

.metric-card {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.metric-card.total {
  background-color: #f3f4f6;
}

.metric-card.completed {
  background-color: #ecfdf5;
}

.metric-card.in-progress {
  background-color: #fefce8;
}

.metric-card.pending {
  background-color: #fef2f2;
}

.metric-label {
  font-size: 0.875rem;
  font-weight: 500;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.total .metric-label { color: #6b7280; }
.total .metric-value { color: #111827; }
.completed .metric-label { color: #059669; }
.completed .metric-value { color: #065f46; }
.in-progress .metric-label { color: #d97706; }
.in-progress .metric-value { color: #92400e; }
.pending .metric-label { color: #dc2626; }
.pending .metric-value { color: #991b1b; }

/* Download Button */
.download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.5rem 1rem;
  margin-top: 1.5rem;
  background-color: white;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease-in-out;
}

.download-button:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

.download-button:focus {
  outline: none;
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.download-button svg {
  margin-right: 0.5rem;
  width: 1.25rem;
  height: 1.25rem;
  color: #6b7280;
}

/* Responsive Grid */
@media (min-width: 1024px) {
  .reports-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
  }
}

/* Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid #f3f4f6;
  border-top-color: #ef4444;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}