/* Gaya Global */
body {
    background-color: #f0f2f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2c3e50;
}

/* Gaya Wadah & Formulir */
.form-container {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 40px;
    margin-top: 50px;
    margin-bottom: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
    animation: fadeIn 0.5s ease-out;
}

.form-title {
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 28px;
}

/* Batang Kemajuan */
.progress {
    height: 10px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.progress-bar {
    background-color: #3498db;
    transition: width 0.3s ease;
}

/* Elemen Formulir */
.form-label {
    font-weight: 500;
    color: #34495e;
    margin-bottom: 8px;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #bdc3c7;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-control.is-invalid {
    border-color: #e74c3c;
    background-image: none;
}

/* Select2 Styling */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 48px;
    border: 1px solid #bdc3c7;
    border-radius: 8px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 48px;
    padding-left: 15px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
    right: 10px;
}

/* Select2 Dropdown Height Control */
.select2-container--default .select2-results > .select2-results__options {
    max-height: 120px !important;
    overflow-y: auto !important;
}

.select2-dropdown {
    border: 1px solid #bdc3c7;
    border-radius: 8px;
}

/* Upload Section */
.upload-section {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid #e9ecef;
}

.upload-section h5 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.upload-section .form-control {
    background-color: #ffffff;
}

.text-muted {
    font-size: 12px;
    margin-top: 5px;
}

/* Button Styles */
.btn-submit {
    width: 100%;
    margin-top: 30px;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    background-color: #3498db;
    border: none;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 24px;
    color: #95a5a6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #e74c3c;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-container {
        padding: 20px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .form-title {
        font-size: 24px;
    }
    
    .btn-submit {
        font-size: 16px;
        padding: 12px;
    }
}

/* Styling khusus untuk dropdown */
.custom-select2 {
    position: relative;
    z-index: 1;
}

.custom-dropdown {
    height: 200px;
    overflow-y: scroll !important;
    position: absolute;
    z-index: 999999;
}

.select2-results {
    height: auto;
    max-height: 200px;
}

.select2-results__options {
    max-height: 200px;
    overflow-y: auto;
} 
.select2-container--bootstrap4 .select2-selection {
    border: 1px solid #ced4da;
    border-radius: 4px;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
}

.select2-container--bootstrap4.select2-container--focus .select2-selection {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.select2-container--bootstrap4 .select2-selection--single {
    height: calc(1.5em + 0.75rem + 2px);
    line-height: 1.5;
}