/* AutoScoring Custom Styles */

/* Root variables */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

/* Global styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f5f7fa;
}

main {
    flex: 1;
}

/* Login page styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem;
}

.login-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.login-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.login-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
}

.login-subtitle {
    margin: 0.5rem 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.login-body {
    padding: 2rem;
}

.login-footer {
    background: #f8f9fa;
    padding: 1rem 2rem;
    text-align: center;
    border-top: 1px solid #dee2e6;
}

/* Card styles */
.card {
    border: none;
    border-radius: 0.5rem;
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

/* Upload zone styles */
.upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fafafa;
}

.upload-zone:hover {
    border-color: var(--primary-color);
    background-color: #f0f7ff;
}

.upload-zone.dragover {
    border-color: var(--primary-color);
    background-color: #e7f1ff;
    transform: scale(1.02);
}

.upload-zone.has-files {
    border-color: var(--success-color);
    background-color: #d1e7dd;
}

.upload-zone i {
    transition: transform 0.3s ease;
}

.upload-zone:hover i {
    transform: scale(1.1);
}

/* File list styles */
.file-list {
    max-height: 200px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.file-item:hover {
    background: #e9ecef;
}

.file-item .file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 250px;
}

.file-item .remove-file {
    color: var(--danger-color);
    cursor: pointer;
    padding: 0 0.25rem;
}

.file-item .remove-file:hover {
    color: #a71d2a;
}

/* Progress bar styles */
.progress {
    border-radius: 1rem;
    overflow: hidden;
}

.progress-bar {
    font-weight: 600;
    transition: width 0.5s ease;
}

/* Navbar styles */
.navbar-brand {
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
}

/* Footer styles */
.footer {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    border-top: 1px solid #dee2e6;
}

/* Job history list */
.list-group-item {
    border-left: none;
    border-right: none;
}

.list-group-item:first-child {
    border-top: none;
}

/* Animation for processing */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.processing {
    animation: pulse 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .login-card {
        margin: 1rem;
    }
    
    .upload-zone {
        padding: 1.5rem;
    }
    
    .file-item .file-name {
        max-width: 150px;
    }
}

/* Admin panel customizations */
.admin-panel .card {
    margin-bottom: 1rem;
}

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

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

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Alert customizations */
.alert {
    border-radius: 0.5rem;
    border: none;
}

.alert-success {
    background: linear-gradient(135deg, #d1e7dd 0%, #badbcc 100%);
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

/* Button hover effects */
.btn {
    transition: all 0.3s ease;
}

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

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

/* Form control focus */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Badge styles */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}
