@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;
}

.file-upload-container {
    transition: all 0.3s ease;
}

.file-upload-container.drag-over {
    transform: scale(1.02);
    border-color: #667eea;
    background-color: #f0f4ff;
}

.progress-bar {
    transition: width 0.5s ease-in-out;
}

.requirement-item {
    transition: all 0.3s ease;
}

.requirement-item:hover {
    transform: translateX(5px);
}

/* Animasi untuk notifikasi */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

.notification {
    animation: slideIn 0.3s ease-out;
}

.notification.hide {
    animation: slideOut 0.3s ease-in;
}
/* Navbar styles */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}
/* 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;
}
/* 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;
}
.file-name-truncate {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Preview PDF Container */
#pdf-preview-container {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background-color: #f9fafb;
}
.pdf-page-canvas {
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 100%;
    height: auto;
}
.pdf-controls {
    background-color: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}
.pdf-info {
    background-color: #f3f4f6;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}
/* Mobile optimizations */
@media (max-width: 768px) {
    .file-upload-container {
    padding: 1.5rem !important;
    margin: 0 0.5rem;
    }
    
    .text-3xl {
    font-size: 1.5rem !important;
    }
    
    .md\:flex {
    flex-direction: column;
    }
    
    .md\:w-1\/2 {
    width: 100% !important;
    }
    
    .border-r.border-gray-200 {
    border-right: none !important;
    border-bottom: 1px solid #e5e7eb;
    }
    
    /* Requirements list */
    .requirement-item {
    padding: 0.75rem !important;
    }
    
    .requirement-item h3 {
    font-size: 0.875rem !important;
    }
    
    .requirement-item p {
    font-size: 0.75rem !important;
    }
    
    .p-8 {
    padding: 1.5rem !important;
    }
    
    .p-6 {
    padding: 1rem !important;
    }
    
    .grid.grid-cols-2 {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    }
    /* PDF preview mobile optimizations */
    #pdf-preview-container {
    max-height: 400px;
    }
    .pdf-controls {
    flex-direction: column;
    gap: 0.5rem;
    }
    .pdf-controls button {
    width: 100%;
    }
}
@media (max-width: 480px) {
    .file-name-truncate {
    max-width: 150px;
    }
    
    .text-2xl {
    font-size: 1.25rem !important;
    }
    
    .grid.gap-4 {
    gap: 0.5rem !important;
    }
    
    .max-h-100 {
    max-height: 200px;
    }
    #pdf-preview-container {
    max-height: 300px;
    }
}
.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;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Tab styles untuk PDF dan Requirements */
.tab-button {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    color: #6b7280;
}
.tab-button:hover {
    color: #374151;
    background-color: #f9fafb;
}
.tab-button.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background-color: #eff6ff;
}
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}
.tab-content.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================ 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);
}