/**
 * MFM MOV Registration System
 * Custom Styles
 */

:root {
    --mfm-purple: #8B1874;
    --mfm-red: #DC143C;
    --mfm-yellow: #FFD700;
    --mfm-dark-purple: #6B0D59;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Logo Container */
.logo-container {
    max-width: 150px;
    margin: 0 auto;
}

.mfm-logo {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
.text-primary {
    color: var(--mfm-purple) !important;
}

.display-4 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Card Styles */
.card {
    border-radius: 15px;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

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

.card-header.bg-gradient {
    background: linear-gradient(135deg, var(--mfm-purple) 0%, var(--mfm-red) 100%);
}

.card-body {
    background-color: #ffffff;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--mfm-purple);
    box-shadow: 0 0 0 0.2rem rgba(139, 24, 116, 0.15);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #28a745;
}

/* Radio Button Styles */
.form-check-input:checked {
    background-color: var(--mfm-purple);
    border-color: var(--mfm-purple);
}

.form-check-input:focus {
    border-color: var(--mfm-purple);
    box-shadow: 0 0 0 0.2rem rgba(139, 24, 116, 0.15);
}

/* Section Headers */
h5 {
    color: var(--mfm-dark-purple);
    font-weight: 700;
}

.border-bottom {
    border-color: var(--mfm-yellow) !important;
    border-width: 3px !important;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--mfm-purple) 0%, var(--mfm-red) 100%);
    border: none;
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(139, 24, 116, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(139, 24, 116, 0.4);
    background: linear-gradient(135deg, var(--mfm-dark-purple) 0%, #b01030 100%);
}

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background-color: #6c757d;
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.4s ease-out;
}

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

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

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

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-bottom: 3px solid var(--mfm-yellow);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid #e0e0e0;
    padding: 1.5rem;
}

/* Invalid Feedback */
.invalid-feedback {
    display: none;
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 0.25rem;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Required Field Indicator */
.text-danger {
    color: var(--mfm-red) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .h3 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .btn-primary {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}

/* Loading State */
.btn-primary:disabled {
    background: linear-gradient(135deg, #9b4c8a 0%, #e05c7a 100%);
}

/* Smooth Transitions */
* {
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--mfm-purple);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--mfm-dark-purple);
}

/* Section Spacing */
.mb-4 {
    margin-bottom: 2rem !important;
}

/* Icons */
.bi {
    vertical-align: middle;
}

/* Datalist Input Styling */
input[list] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Form Text Helper */
.form-text {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Confirmation Content Styling */
#confirmationContent {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--mfm-purple);
}

#confirmationContent strong {
    color: var(--mfm-dark-purple);
}

#confirmationContent .row > div {
    margin-bottom: 1rem;
}
