/* Upload Page Styles */

/* Upload Header */
.upload-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 120px 0 60px;
    margin-top: 56px; /* Account for fixed navbar */
}

.upload-header h1 {
    color: white;
    margin-bottom: 1rem;
}

.upload-header .lead {
    opacity: 0.9;
}

/* Content Type Selection Cards */
.content-type-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
}

.content-type-card:hover {
    border-color: #28a745;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.15);
}

.content-type-card.active {
    border-color: #28a745;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.3);
}

.content-type-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #28a745;
}

.content-type-card.active i {
    color: white;
}

.content-type-card h6 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.content-type-card p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.content-type-card.active p {
    opacity: 1;
}

/* Image Upload Area */
.image-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.image-upload-area:hover {
    border-color: #28a745;
    background: #e8f5e8;
}

.image-upload-area i {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
    display: block;
}

.image-upload-area:hover i {
    color: #28a745;
}

.image-upload-area p {
    margin-bottom: 0.5rem;
    color: #495057;
    font-weight: 500;
}

.image-upload-area .text-muted {
    font-size: 0.9rem;
}

/* Image Preview */
#imagePreview img {
    max-height: 300px;
    width: auto;
    border: 1px solid #dee2e6;
}

/* Form Enhancements */
.form-control:focus,
.form-select:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
}

.form-text {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 1.25rem 1.5rem;
}

.card-header h5,
.card-header h6 {
    margin-bottom: 0;
    color: #495057;
}

.card-body {
    padding: 2rem;
}

/* Button Enhancements */
.btn-primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-outline-primary {
    border-color: #28a745;
    color: #28a745;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #28a745;
    border-color: #28a745;
    transform: translateY(-2px);
}

.btn-secondary {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.btn-danger {
    border-radius: 20px;
    font-size: 0.875rem;
}

/* Guidelines Section */
#uploadGuidelines .card-body {
    padding: 1.5rem;
}

#uploadGuidelines h6 {
    font-weight: bold;
    margin-bottom: 1rem;
}

#uploadGuidelines ul {
    margin-bottom: 0;
}

#uploadGuidelines li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

/* Recommendation Fields */
#recommendationFields {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

/* Loading States */
.uploading {
    position: relative;
    pointer-events: none;
}

.uploading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    z-index: 10;
}

.uploading::before {
    content: 'Uploading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #28a745;
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    z-index: 11;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-up {
    animation: slideInUp 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .upload-header {
        padding: 100px 0 40px;
    }
    
    .upload-header h1 {
        font-size: 2rem;
    }
    
    .content-type-card {
        margin-bottom: 1rem;
        min-height: 150px;
        padding: 1.5rem 1rem;
    }
    
    .content-type-card i {
        font-size: 2.5rem;
    }
    
    .image-upload-area {
        padding: 2rem 1rem;
    }
    
    .image-upload-area i {
        font-size: 2.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .btn-primary,
    .btn-outline-primary {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }
    
    #recommendationFields {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .upload-header h1 {
        font-size: 1.75rem;
    }
    
    .upload-header .lead {
        font-size: 1rem;
    }
    
    .content-type-card {
        min-height: 120px;
        padding: 1rem;
    }
    
    .content-type-card i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .content-type-card h6 {
        font-size: 1rem;
    }
    
    .content-type-card p {
        font-size: 0.8rem;
    }
    
    .image-upload-area {
        padding: 1.5rem 1rem;
    }
    
    .image-upload-area i {
        font-size: 2rem;
    }
    
    .btn-primary,
    .btn-outline-primary,
    .btn-secondary {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
    }
}

/* Success State */
.upload-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.upload-success i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.upload-success h4 {
    margin-bottom: 1rem;
}

.upload-success p {
    margin-bottom: 0;
    opacity: 0.9;
}

/* Error State */
.upload-error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.upload-error i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.upload-error h4 {
    margin-bottom: 1rem;
}

.upload-error p {
    margin-bottom: 0;
    opacity: 0.9;
}
