body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h1, h2 {
    color: #333;
}

.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.result-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.btn-primary {
    background-color: #4a6fdc;
    border-color: #4a6fdc;
}

.btn-primary:hover {
    background-color: #3a5bbf;
    border-color: #3a5bbf;
}

#loadingIndicator {
    padding: 40px 0;
}

#resultsContainer {
    margin-top: 15px;
}

.form-control:focus {
    border-color: #4a6fdc;
    box-shadow: 0 0 0 0.25rem rgba(74, 111, 220, 0.25);
}

.upload-preview {
    max-width: 100%;
    max-height: 150px;
    margin-top: 10px;
    border-radius: 4px;
}

/* Style for pose input buttons */
.remove-pose {
    background-color: #f8f9fa;
    border-color: #ced4da;
    color: #dc3545;
}

.remove-pose:hover {
    background-color: #f1f3f5;
    color: #b02a37;
}

/* Enhanced card styles */
.card-header {
    background-color: #f1f4fc;
    font-weight: 600;
    color: #3a5bbf;
}

.card-footer {
    background-color: #f8f9fa;
}

/* Quality score indicator */
.quality-score {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: #e9ecef;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.quality-score.high {
    background-color: #d1e7dd;
    color: #0f5132;
}

.quality-score.medium {
    background-color: #fff3cd;
    color: #664d03;
}

.quality-score.low {
    background-color: #f8d7da;
    color: #842029;
}

/* Enhanced form layout */
.form-text {
    color: #6c757d;
    font-size: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .result-image {
        height: 200px;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* Edit modal styles */
#editModal .modal-body img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 1rem;
}

#editResult {
    margin-top: 1rem;
}

/* Edit button styling */
.edit-btn {
    margin-left: 0.5rem;
}

/* Background description textarea */
#backgroundDescription {
    resize: vertical;
    min-height: 60px;
}

/* Model generation checkbox */
#generateModel:checked ~ .form-text {
    color: #4a6fdc;
}

/* Disabled input styling */
input[type="file"]:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/* Enhanced button group styling */
.btn-group-sm > .btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

/* Loading spinner enhancement */
.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Card hover effects for generated images */
.result-image {
    transition: transform 0.3s ease;
}

.card:hover .result-image {
    transform: scale(1.02);
}

/* Edit instruction textarea */
#editInstruction {
    resize: vertical;
    min-height: 80px;
}

/* Modal backdrop blur effect */
.modal-backdrop.show {
    backdrop-filter: blur(4px);
}

/* Success message styling */
.alert-success {
    border-left: 4px solid #198754;
}

/* Error message styling */
.alert-danger {
    border-left: 4px solid #dc3545;
}