
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* ================ NAVBAR STYLES ================ */
.navbar {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  position: sticky;
  top: 0;
  z-index: 50;
  will-change: transform;
}

.nav-link {
  transition: all 0.2s ease-in-out;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: #2563eb;
  transform: translateY(-1px);
}

.history-card {
    transition: all 0.3s ease;
}

.history-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.score-badge {
    transition: all 0.3s ease;
}

.empty-state {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Notification styles */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    max-width: 400px;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.notification.hide {
    animation: slideOut 0.3s ease-in;
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
    opacity: 0;
    transform: translateY(20px);
    }
    to {
    opacity: 1;
    transform: translateY(0);
    }
}

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

/* Print styles */
@media print {
    .no-print {
    display: none !important;
    }
    
    body {
    background: white !important;
    }
    
    .bg-gradient-to-r {
    background: #0067ac !important;
    -webkit-print-color-adjust: exact;
    }
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Responsive text fixes */
.text-overflow-fix {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.break-words {
    word-break: break-word;
    overflow-wrap: break-word;
}

.filename-truncate {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .history-card {
    padding: 1rem !important;
    margin: 0.5rem 0;
    }
    
    .flex-col.lg\:flex-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    }
    
    .flex.items-center.space-x-4 {
    flex-wrap: wrap;
    gap: 0.5rem;
    }
    
    .score-badge {
    min-width: auto !important;
    padding: 0.5rem !important;
    }
    
    .text-3xl {
    font-size: 1.5rem !important;
    }
    
    /* Stats cards scroll */
    .flex.gap-4.mb-8.md\:grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    }
    
    .flex.gap-4.mb-8.md\:grid > div {
    flex: 0 0 auto;
    width: 250px;
    }
    
    .p-6 {
    padding: 1rem !important;
    }
    
    .p-8 {
    padding: 1.5rem !important;
    }
    
    .action-buttons {
    flex-direction: column;
    gap: 0.5rem;
    }
    
    .action-buttons > * {
    width: 100%;
    justify-content: center;
    }
}

@media (max-width: 480px) {
    .filename-truncate {
    max-width: 180px;
    }
    
    .text-2xl {
    font-size: 1.25rem !important;
    }
    
    .text-xl {
    font-size: 1.125rem !important;
    }
    
    .grid.grid-cols-1.md\:grid-cols-2 {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    }
    
    .flex.flex-col.sm\:flex-row {
    flex-direction: column !important;
    gap: 0.75rem;
    }
    
    .flex.flex-col.sm\:flex-row > * {
    width: 100%;
    }
}

.no-horizontal-scroll {
    max-width: 100%;
    overflow-x: hidden;
}

.safe-area {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}