/* OLMoCR Web Application - Custom Styles */

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding-bottom: 60px;
}

.container {
    max-width: 1200px;
}

/* Screen Management */
.screen {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Drop Zone */
.drop-zone {
    border: 3px dashed #ccc;
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-zone:hover {
    border-color: #0d6efd;
    background: #e7f1ff;
}

.drop-zone.drag-over {
    border-color: #198754;
    background: #d1e7dd;
    transform: scale(1.02);
}

.drop-zone-content {
    pointer-events: none;
}

/* Info Cards */
.info-card {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.info-card h6 {
    font-weight: 600;
    margin-bottom: 5px;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
}

/* Processing Steps */
.processing-step {
    padding: 15px 20px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.processing-step i {
    margin-right: 15px;
    font-size: 1.2rem;
}

.processing-step.active {
    background: #cfe2ff;
    border-left: 4px solid #0d6efd;
}

.processing-step.active i::before {
    content: "\f4a6";  /* bi-circle-fill */
    color: #0d6efd;
}

.processing-step.completed {
    background: #d1e7dd;
}

.processing-step.completed i::before {
    content: "\f26a";  /* bi-check-circle-fill */
    color: #198754;
}

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

.spinning {
    animation: spin 2s linear infinite;
}

/* Stat Cards */
.stat-card {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 10px;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Progress Bar */
.progress {
    border-radius: 15px;
    overflow: hidden;
}

.progress-bar {
    font-size: 1rem;
    font-weight: bold;
    line-height: 30px;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

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

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Footer */
footer {
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: auto;
}

/* Connection Status */
#connection-icon {
    margin-right: 5px;
}

#connection-status {
    font-weight: 500;
}

.connection-error #connection-icon::before {
    content: "\f5de";  /* bi-wifi-off */
    color: #dc3545;
}

/* File Input Styling */
#file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Responsive Design */
@media (max-width: 768px) {
    .drop-zone {
        padding: 40px 20px;
    }

    .stat-card h3 {
        font-size: 2rem;
    }

    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .info-card {
        margin-bottom: 15px;
    }
}

/* Loading Animation */
.pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Success State */
.success-icon {
    font-size: 4rem;
    color: #198754;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Error State */
.error-icon {
    font-size: 4rem;
    color: #dc3545;
    animation: shake 0.5s ease-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}
