@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

.gradient-bg {
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.98);
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

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

.progress-bar {
    transition: width 0.3s ease;
}

.question-card {
    transition: all 0.2s ease;
}

.question-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.radio-option {
    transition: all 0.2s ease;
}

.radio-option:hover {
    background-color: rgba(13, 71, 161, 0.05);
    transform: translateX(2px);
}

.radio-option.selected {
    background-color: rgba(13, 71, 161, 0.1);
    border-color: #0d47a1;
    box-shadow: 0 2px 8px rgba(13, 71, 161, 0.15);
}

.checkbox-option {
    transition: all 0.2s ease;
}

.checkbox-option:hover {
    background-color: rgba(13, 71, 161, 0.05);
}

.checkbox-option.selected {
    background-color: rgba(13, 71, 161, 0.1);
    border-color: #0d47a1;
}

.btn-primary {
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.3);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.toast {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.input-field {
    transition: all 0.2s ease;
}

.input-field:focus {
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

.required-star {
    color: #ef4444;
}

.step-indicator {
    transition: all 0.2s ease;
}

.step-indicator.active {
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    color: white;
    transform: scale(1.1);
}

.step-indicator.completed {
    background: #10b981;
    color: white;
}

.shape {
    position: fixed;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    border-radius: 50%;
    top: 10%;
    right: 5%;
    animation: float 20s infinite ease-in-out;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #1976d2, #2196f3);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    bottom: 10%;
    left: 5%;
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, -20px) rotate(180deg); }
}

.spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 2px solid white;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-field {
    border-color: #ef4444 !important;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    animation: slideUp 0.3s;
}

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

.select-field {
    transition: all 0.2s ease;
}

.select-field:focus {
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

.visi-misi-card {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.9), rgba(25, 118, 210, 0.9));
    backdrop-filter: blur(10px);
}

.question-group {
    border-left: 3px solid #0d47a1;
    padding-left: 1rem;
    margin-left: 0.5rem;
}

.conditional-question {
    background-color: #f0f7ff;
    border-left: 3px solid #1976d2;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0 8px 8px 0;
}

.loading-ui {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* backdrop-filter: blur(5px); */
    background-color: rgba(0,0,0,0.3); /* semi-transparent */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s;
}

/* hidden class */
.hidden {
    display: none;
}

/* Spinner */
.loading-ui-spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.toast-enter {
    animation: slideIn 0.3s ease-out forwards;
}
.toast-exit {
    animation: fadeOut 0.3s ease-in forwards;
}

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

@keyframes fadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

.select-sm + .select2-container .select2-selection {
    min-height: 36px;
    font-size: 0.975rem;
}
.select-sm + .select2-container .select2-selection__rendered {
    line-height: 34px;
    /* padding-left: 0.75rem; */
}

.kecamatan-dropdown{
    max-height: 300px !important;
    /* font-size: 0.975rem; */
}
