/* Custom styles for Medical Device Manufacturing Calculator */

/* Clean, professional styling based on questionnaire design */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
}

/* Clean form styling inspired by the questionnaire */
.form-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-card h1, .form-card h2 {
    color: #495057;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* Professional form inputs */
.form-label {
    color: #495057;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0.75rem;
    font-size: 0.9rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
    outline: 0;
}

.form-control::placeholder {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Clean button styling */
.btn-primary-clean {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 4px;
    border: none;
    transition: all 0.15s ease-in-out;
}

.btn-primary-clean:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-secondary-clean {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 4px;
    border: none;
    transition: all 0.15s ease-in-out;
}

.btn-secondary-clean:hover {
    background-color: #5a6268;
    border-color: #545b62;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Clean card styling */
.card-clean {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card-clean:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Two-column form layout */
.form-row-clean {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .form-row-clean {
        grid-template-columns: 1fr;
    }
}

/* Navigation styling */
.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

/* Professional alert styling */
.alert-clean {
    border: 1px solid;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.alert-clean.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-clean.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-clean.alert-info {
    background-color: #cce7ff;
    border-color: #b3d9ff;
    color: #004085;
}

/* Clean typography */
.text-muted-clean {
    color: #6c757d !important;
    font-size: 0.9rem;
}

/* Professional spacing */
.section-spacing {
    margin-bottom: 2rem;
}

/* Icon styling */
.fa-heartbeat {
    animation: heartbeat 2s infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

/* Footer styling */
footer {
    margin-top: auto;
    background-color: #f8f9fa !important;
    border-top: 1px solid #e9ecef;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation for alerts */
.alert {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
