/* İK Yönetim - Frontend Form CSS (Tailwind handles most layout) */

/* Step content show/hide */
.ik-step-content        { display: none; }
.ik-step-content.active { display: block; }

/* Progress indicator states (toggled by JS) */
.ik-step-indicator {
    transition: background-color 0.25s ease, color 0.25s ease,
                box-shadow 0.25s ease, transform 0.2s ease;
}

.ik-step-indicator.completed {
    background-color: #00236f;
    color: #fff;
}

.ik-step-indicator.current {
    background-color: #00236f;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 35, 111, 0.2);
    transform: scale(1.1);
}

/* Sidebar nav active state (toggled by JS) */
.ik-nav-item.active {
    background-color: #1e3a8a;
    color: #90a8ff;
    font-weight: 600;
    border-radius: 0.5rem;
}

/* CV upload drag-over highlight */
#cv-upload-area.drag-over {
    border-color: #0058be;
    background-color: #f0f4ff;
}

/* Form submit loading state */
#ik-submit-btn.loading {
    opacity: 0.75;
    pointer-events: none;
    cursor: not-allowed;
}

/* Captcha refresh animation */
@keyframes spin { to { transform: rotate(360deg); } }
.ik-spinning { animation: spin 0.6s linear; }

/* Form success / error messages */
#ik-form-messages .ik-msg {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#ik-form-messages .ik-msg-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #b8dbc8;
}

#ik-form-messages .ik-msg-error {
    background: #ffdad6;
    color: #93000a;
    border: 1px solid #f5c6cb;
}

/* Smooth step transitions */
.ik-step-content {
    animation: stepFade 0.25s ease-out;
}

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

/* Custom scrollbar for sidebar */
.ik-basvuru-formu-container aside::-webkit-scrollbar { width: 4px; }
.ik-basvuru-formu-container aside::-webkit-scrollbar-thumb {
    background: #c5c5d3;
    border-radius: 4px;
}

/* File upload active state */
#cv-upload-area:has(input:focus) {
    border-color: #0058be;
}

/* Notification toasts (shared) */
#ik-notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 380px;
    pointer-events: none;
}

.ik-alert {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.ik-alert-success { background: #d4edda; color: #155724; }
.ik-alert-error   { background: #ffdad6; color: #93000a; }
.ik-alert-info    { background: #dce1ff; color: #00164e; }

.ik-alert-icon    { margin-right: 10px; flex-shrink: 0; }
.ik-alert-message { flex: 1; }
.ik-alert-close   {
    background: none; border: none; font-size: 18px; font-weight: bold;
    opacity: 0.6; cursor: pointer; margin-left: 10px; padding: 0;
    color: inherit; transition: opacity 0.15s;
}
.ik-alert-close:hover { opacity: 1; }

@keyframes slideInRight {
    from { transform: translateX(110%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

@media (max-width: 640px) {
    #ik-notifications { left: 10px; right: 10px; max-width: none; }
}
