/* Custom CSS for the Internship Evaluation Platform */

/* Dark theme enhancements */
:root {
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-yellow: #f59e0b;
    --accent-red: #ef4444;
}

/* Base styles */
body {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #0f172a 100%);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Form enhancements */
.form-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Button animations */
button, .btn {
    transition: all 0.2s ease;
}

button:hover, .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

button:active, .btn:active {
    transform: translateY(0);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

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

/* Progress bars */
.progress-bar {
    transition: width 0.8s ease;
    background: linear-gradient(90deg, var(--accent-blue) 0%, #60a5fa 100%);
}

/* Status badges */
.status-pending {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    animation: pulse 2s infinite;
}

.status-processing {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #fbbf24 100%);
    animation: pulse 1.5s infinite;
}

.status-completed {
    background: linear-gradient(135deg, var(--accent-green) 0%, #34d399 100%);
}

.status-failed {
    background: linear-gradient(135deg, var(--accent-red) 0%, #f87171 100%);
}

/* Recommendation badges */
.rec-interview {
    background: linear-gradient(135deg, var(--accent-green) 0%, #34d399 100%);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.rec-pass {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #fbbf24 100%);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.rec-flag {
    background: linear-gradient(135deg, var(--accent-red) 0%, #f87171 100%);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

/* Score visualization */
.score-excellent {
    color: var(--accent-green);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.score-good {
    color: var(--accent-yellow);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.score-poor {
    color: var(--accent-red);
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* Loading animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

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

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Table enhancements */
.table-hover tbody tr:hover {
    background-color: rgba(55, 65, 81, 0.5);
    transition: background-color 0.2s ease;
}

/* Markdown content styling */
.prose {
    color: var(--text-secondary);
}

.prose h1, .prose h2, .prose h3 {
    color: var(--text-primary);
}

.prose code {
    background-color: var(--bg-tertiary);
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.prose pre {
    background-color: var(--bg-tertiary);
    border: 1px solid #4b5563;
}

.prose blockquote {
    border-left: 4px solid var(--accent-blue);
    background-color: rgba(59, 130, 246, 0.1);
}

/* File upload styling */
input[type="file"] {
    cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    margin-right: 1rem;
    transition: all 0.2s ease;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background: #2563eb;
}

/* Responsive design enhancements */
@media (max-width: 768px) {
    .mobile-stack {
        flex-direction: column;
    }
    
    .mobile-full {
        width: 100%;
    }
    
    .mobile-center {
        text-align: center;
    }
}

/* Focus states for accessibility */
*:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Custom utility classes */
.glass-effect {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(55, 65, 81, 0.3);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .no-print {
        display: none;
    }
}
