/* Tüm input wrapper'lar için genel stiller */
.input-wrapper {
    position: relative;
    cursor: text;
    display: block;
}

    .input-wrapper .input-icon {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: #6c757d;
        font-size: 16px;
        z-index: 4;
        cursor: pointer;
        transition: color 0.3s ease;
        /* Icon'un pozisyonunu sabitle - validation message eklendiğinde hareket etmesin */
        margin: 0;
        padding: 0;
    }

/* Form-group yapısının icon pozisyonunu etkilememesi için */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

/* Validation message input-wrapper dışında kalmalı ve icon'u etkilememeli */
.form-group > .validation-message {
    display: block;
    margin-top: 0.5rem;
    margin-left: 0;
    position: relative;
    color: #dc3545;
    font-size: 0.875rem;
}

/* Date wrapper için ikon boyutunu büyüt */
.date-wrapper .input-icon {
    font-size: 18px;
}

/* Input hover ve focus efektleri */
.input-wrapper:hover .input-icon {
    color: #17a2b8 !important;
    transform: translateY(-50%) scale(1.1);
}

.input-wrapper input:focus ~ .input-icon,
.input-wrapper textarea:focus ~ .input-icon,
.input-wrapper select:focus ~ .input-icon {
    color: #138496 !important;
}

.input-wrapper input:valid ~ .input-icon,
.input-wrapper textarea:valid ~ .input-icon,
.input-wrapper select:valid ~ .input-icon {
    color: #28a745 !important;
}

/* Input alanları için padding */
.input-wrapper input,
.input-wrapper textarea,
.input-wrapper select {
    padding-left: 50px !important;
}

/* Select için özel dropdown arrow pozisyonu */
.input-wrapper select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

    .input-wrapper select:focus,
    .input-wrapper input:focus,
    .input-wrapper textarea:focus {
        outline: none;
        border-color: #138496;
        box-shadow: 0 0 0 3px rgba(19, 132, 150, 0.1);
    }

/* Validation durumları için input border stilleri - Smooth transition */
.input-wrapper input,
.input-wrapper textarea,
.input-wrapper select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Input doluyken arka plan değişikliği (dosya ve checkbox hariç) */
.input-wrapper input:not([type="file"]):not([type="radio"]):not([type="checkbox"]):not(:placeholder-shown),
.input-wrapper textarea:not(:placeholder-shown) {
    background-color: #f0fdf4;
}

/* Boş input'lar için varsayılan arka plan */
.input-wrapper input:placeholder-shown,
.input-wrapper textarea:placeholder-shown {
    background-color: #ffffff;
}

/* Select için varsayılan beyaz arka plan */
.input-wrapper select {
    background-color: #ffffff;
}

/* Date input - varsayılan beyaz arka plan */
.input-wrapper input[type="date"] {
    background-color: #ffffff;
}

/* Textarea için özel ayarlar */
.input-wrapper .textarea-control {
    min-height: 100px;
    resize: vertical;
    padding-top: 16px;
}

    .input-wrapper .textarea-control ~ .input-icon {
        top: 24px;
        transform: translateY(0);
    }

/* Date input için özel ayarlar */
.date-wrapper .date-input {
    cursor: pointer !important;
    position: relative;
    z-index: 2;
}

    .date-wrapper .date-input::-webkit-calendar-picker-indicator {
        position: absolute;
        right: 0;
        left: 0;
        top: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        cursor: pointer;
        opacity: 0;
        z-index: 3;
    }

    .date-wrapper .date-input:not(:focus):invalid {
        color: transparent;
    }

        .date-wrapper .date-input:not(:focus):invalid::-webkit-datetime-edit {
            color: transparent;
        }

.date-wrapper .date-placeholder {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.2s ease;
}

.date-wrapper .date-input:focus + .date-placeholder,
.date-wrapper .date-input:valid + .date-placeholder {
    opacity: 0;
}

/* Form Row - Daha spesifik selector kullan */
.register-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

    .register-form .form-row .form-group {
        flex: 1;
        margin-bottom: 0;
    }

    .register-form .form-row .col-md-6 {
        flex: 1;
        max-width: 50%;
    }

/* Mobil uyumluluk için */
@media (max-width: 768px) {
    .register-form .form-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 1.5rem; /* Normal form-group ile aynı boşluk */
    }

        .register-form .form-row .form-group {
            margin-bottom: 1.5rem;
        }

        /* Son form-group'un margin'ini kaldır (çünkü form-row'un margin'i var) */
        .register-form .form-row .form-group:last-child {
            margin-bottom: 0;
        }

        .register-form .form-row .col-md-6 {
            flex: none;
            max-width: 100%;
        }
}

.radio-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.radio-item {
    flex: 1;
}

    .radio-item input[type="radio"] {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #666;
}

    .radio-label:hover {
        border-color: #138496;
        background: #e7f6f8;
    }

.radio-item input[type="radio"]:checked + .radio-label {
    border-color: #138496;
    background: #138496;
    color: white;
}

.radio-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* Form Sections */
.bireysel-alanlar {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

.kurumsal-alanlar {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.register-form:has(input[type="radio"][value="Bireysel"]:checked) .bireysel-alanlar {
    display: block !important;
}

.register-form:has(input[type="radio"][value="Bireysel"]:checked) .kurumsal-alanlar {
    display: none !important;
}

.register-form:has(input[type="radio"][value="Kurumsal"]:checked) .kurumsal-alanlar {
    display: block !important;
}

.register-form:has(input[type="radio"][value="Kurumsal"]:checked) .bireysel-alanlar {
    display: none !important;
}

input[type="radio"][value="Bireysel"]:checked ~ * .bireysel-alanlar,
input[type="radio"][value="Bireysel"]:checked ~ .bireysel-alanlar {
    display: block !important;
}

input[type="radio"][value="Bireysel"]:checked ~ * .kurumsal-alanlar,
input[type="radio"][value="Bireysel"]:checked ~ .kurumsal-alanlar {
    display: none !important;
}

input[type="radio"][value="Kurumsal"]:checked ~ * .kurumsal-alanlar,
input[type="radio"][value="Kurumsal"]:checked ~ .kurumsal-alanlar {
    display: block !important;
}

input[type="radio"][value="Kurumsal"]:checked ~ * .bireysel-alanlar,
input[type="radio"][value="Kurumsal"]:checked ~ .bireysel-alanlar {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dosya Yükleme Stilleri - Modern Tasarım */
.file-upload-container {
    position: relative;
    border: 3px dashed #d1d5db;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

    .file-upload-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 50% 50%, rgba(19, 132, 150, 0.03), transparent 70%);
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .file-upload-container:hover::before {
        opacity: 1;
    }

    .file-upload-container:hover {
        border-color: #138496;
        background: linear-gradient(135deg, #f0feff 0%, #e7f6f8 100%);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(19, 132, 150, 0.15);
    }

    .file-upload-container.file-selected {
        border-color: #138496;
        border-style: solid;
        background: linear-gradient(135deg, #f0feff 0%, #e7f6f8 100%);
        box-shadow: 0 4px 16px rgba(19, 132, 150, 0.2);
    }

.file-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-content {
    pointer-events: none;
    z-index: 1;
}

.file-upload-icon {
    font-size: 64px;
    color: #9ca3af;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
}

    .file-upload-icon::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 120px;
        height: 120px;
        background: radial-gradient(circle, rgba(19, 132, 150, 0.1), transparent 70%);
        border-radius: 50%;
        opacity: 0;
        transition: opacity 0.4s ease;
    }

.file-upload-container:hover .file-upload-icon {
    color: #138496;
    transform: scale(1.1) translateY(-4px);
}

    .file-upload-container:hover .file-upload-icon::after {
        opacity: 1;
    }

.file-upload-container.file-selected .file-upload-icon {
    color: #138496;
    transform: scale(1) rotate(0deg);
    animation: checkBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes checkBounce {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.file-upload-text {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.file-upload-info {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

.file-name-display {
    margin-top: 20px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    font-size: 15px;
    color: #374151;
    display: none;
    position: relative;
    z-index: 10;
    border: 2px solid #138496;
    box-shadow: 0 2px 8px rgba(19, 132, 150, 0.1);
    animation: slideInFromBottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

    .file-name-display.show {
        display: block;
    }

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-size {
    font-size: 13px;
    color: #6b7280;
    margin-left: 12px;
    font-weight: 500;
    background: rgba(19, 132, 150, 0.08);
    padding: 2px 8px;
    border-radius: 6px;
}

/* DOSYA ÇIKARMA BUTONU STİLLERİ - MODERN */
.remove-file-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    cursor: pointer;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 20;
    background-color: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

    .remove-file-btn:hover {
        color: #fff;
        background: linear-gradient(135deg, #ef4444, #dc2626);
        transform: scale(1.1) rotate(90deg);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    }

    .remove-file-btn:active {
        transform: scale(0.95) rotate(90deg);
    }

.date-input {
    color: #333 !important;
}

    .date-input::-webkit-calendar-picker-indicator {
        cursor: pointer;
    }

.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.validation-message {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
    display: block;
}

.input-wrapper input[type="date"] {
    cursor: pointer;
}

.department-text {
    display: block;
    font-size: 0.8em;
    font-weight: 400;
    color: #666;
    margin-top: 2px;
    line-height: 1.2;
    color: #dc3545;
}

.query-application-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(23, 162, 184, 0.2);
    border: none;
    width: 100%;
    min-height: 54px;
}

    .query-application-btn:hover {
        background: linear-gradient(135deg, #138496, #117a8b);
        color: white;
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(23, 162, 184, 0.3);
    }

    .query-application-btn i {
        margin-right: 8px;
        font-size: 18px;
    }

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

@media (max-width: 576px) {
    .form-footer {
        flex-direction: column;
        text-align: center;
    }

    .query-application-btn {
        width: 100%;
        justify-content: center;
    }
}

/* DRAG OVER DURUMU - MODERN ANİMASYON */
.file-upload-container.dragover {
    border-color: #138496;
    border-width: 4px;
    background: linear-gradient(135deg, #f0feff 0%, #d1ecf1 100%);
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(19, 132, 150, 0.25);
}

    .file-upload-container.dragover .file-upload-icon {
        color: #138496;
        transform: scale(1.15);
        animation: bounceIn 0.6s ease;
    }

@keyframes bounceIn {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* DOSYA İŞLENİYOR DURUMU - MODERN */
.file-upload-container.file-processing {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    pointer-events: none;
    opacity: 0.9;
}

    .file-upload-container.file-processing .file-upload-icon {
        animation: processingPulse 1.5s ease-in-out infinite;
        color: #f59e0b;
    }

@keyframes processingPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: scale(1.15) rotate(180deg);
        opacity: 0.8;
    }
}

/* KVKK MODAL TASARIMI - MODERN & ŞIK */
#kvkkModal .modal-content {
    border: 3px solid #17a2b8;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

#kvkkModal .modal-header {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    border-bottom: none;
    padding: 25px 30px;
    position: relative;
    overflow: hidden;
}

    #kvkkModal .modal-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
        pointer-events: none;
    }

    #kvkkModal .modal-header .modal-title {
        font-family: 'Georgia', 'Times New Roman', serif;
        font-weight: 700;
        font-size: 1.6rem;
        text-shadow: 0 2px 4px rgba(0,0,0,0.2);
        position: relative;
        z-index: 1;
        letter-spacing: 0.5px;
    }

        #kvkkModal .modal-header .modal-title i {
            animation: pdfIconBounce 2s ease-in-out infinite;
            font-family: 'Font Awesome 6 Free';
        }

@keyframes pdfIconBounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

#kvkkModal .modal-body {
    background: #f8f9fa;
    position: relative;
}

    #kvkkModal .modal-body::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, #17a2b8 0%, #138496 50%, #17a2b8 100%);
        background-size: 200% 100%;
        animation: gradientShift 3s ease infinite;
    }

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

#kvkkModal .modal-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 2px solid #dee2e6;
    padding: 20px 30px;
}

    #kvkkModal .modal-footer .btn-secondary {
        background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
        border: none;
        padding: 12px 30px;
        font-weight: 500;
        border-radius: 8px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
    }

        #kvkkModal .modal-footer .btn-secondary:hover {
            background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(108, 117, 125, 0.4);
        }

#kvkkPdfFrame {
    border-radius: 8px;
    margin: 10px;
    width: calc(100% - 20px) !important;
    height: calc(100% - 20px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Loading spinner için iframe */
.pdf-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

    .pdf-loading .spinner {
        width: 60px;
        height: 60px;
        border: 4px solid #f3f3f3;
        border-top: 4px solid #17a2b8;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Modal açılış animasyonu */
#kvkkModal.show .modal-dialog {
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ======================== */
/* IMER REGISTER ÖZEL KVKK TASARIMI */
/* Sadece bu sayfaya özel stiller */
/* ======================== */

/* Document Header PDF Icon - Turkuaz */
.document-header i.fa-file-pdf {
    color: #17a2b8 !important;
    font-size: 20px !important;
    transition: all 0.3s ease;
}

.document-header:hover i.fa-file-pdf {
    color: #138496 !important;
    transform: scale(1.1);
}

/* Checkbox Wrapper - Daha büyük ve belirgin */
.document-section .checkbox-wrapper {
    padding: 14px 20px !important;
    border: 2px solid #e9ecef !important;
    min-height: 56px;
}

    .document-section .checkbox-wrapper:hover {
        border-color: #17a2b8 !important;
        background: rgba(23, 162, 184, 0.03) !important;
        box-shadow: 0 2px 8px rgba(23, 162, 184, 0.1) !important;
    }

/* Checkbox Label */
.document-section .checkbox-label {
    font-size: 15px !important;
    line-height: 1.4 !important;
}

/* Checkbox Icon - Daha büyük ve belirgin */
.document-section .checkbox-icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 6px !important;
    margin-right: 14px !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

.document-section .checkbox-label:hover .checkbox-icon {
    border-color: #17a2b8 !important;
    transform: scale(1.05);
}

/* Checked State - Turkuaz gradient */
.document-section .document-checkbox:checked + .checkbox-label .checkbox-icon {
    background: linear-gradient(135deg, #17a2b8, #138496) !important;
    border-color: #17a2b8 !important;
    color: white !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3) !important;
}

.document-section .document-checkbox:checked + .checkbox-label {
    color: #17a2b8 !important;
    font-weight: 600 !important;
}

/* Wrapper vurgulanması - checkbox işaretlendiğinde */
.document-section .checkbox-wrapper:has(.document-checkbox:checked) {
    border-color: #17a2b8 !important;
    background: rgba(23, 162, 184, 0.05) !important;
    box-shadow: 0 4px 16px rgba(23, 162, 184, 0.15) !important;
}

/* Oku Butonu - Modern Turkuaz Tasarım - Sadece ImerRegister için */
.document-section .btn-document {
    background: linear-gradient(135deg, #17a2b8, #138496) !important;
    border: none !important;
    border-radius: 10px !important;
    color: white !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3) !important;
    position: relative;
    overflow: hidden;
}

    .document-section .btn-document::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.5s ease;
    }

    .document-section .btn-document:hover::before {
        left: 100%;
    }

    .document-section .btn-document:hover {
        background: linear-gradient(135deg, #138496, #117a8b) !important;
        transform: translateY(-3px) scale(1.05) !important;
        box-shadow: 0 8px 25px rgba(23, 162, 184, 0.5) !important;
        color: white !important;
        text-decoration: none !important;
    }

    .document-section .btn-document:active {
        transform: translateY(-1px) scale(1.02) !important;
    }

    .document-section .btn-document i {
        color: white !important;
        transition: transform 0.3s ease;
    }

    .document-section .btn-document:hover i {
        transform: scale(1.2);
        color: white !important;
    }

/* KVKK Modal Footer Info Icon Rengi */
#kvkkModal .modal-footer .text-muted i.fa-info-circle {
    color: #138496 !important;
}

/* Math Captcha Input Focus ve Arka Plan Özellikleri */
input[name="mathCaptcha"] {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

input[name="mathCaptcha"]:focus {
    outline: none;
    border-color: #138496 !important;
    box-shadow: 0 0 0 3px rgba(19, 132, 150, 0.1) !important;
}

/* Güvenlik sorusu inputu doluyken arka plan değişikliği */
input[name="mathCaptcha"]:not(:placeholder-shown) {
    background-color: #f0fdf4;
}

/* Boş güvenlik sorusu inputu için varsayılan arka plan */
input[name="mathCaptcha"]:placeholder-shown {
    background-color: #ffffff;
}

/* ======================== */
/* MODERN DOSYA YÜKLEME - PROGRESS BAR & PREVIEW */
/* ======================== */

/* Progress Bar Container */
.upload-progress {
    padding: 30px;
    text-align: center;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #138496, #17a2b8, #138496);
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
    animation: progressShimmer 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(19, 132, 150, 0.3);
}

@keyframes progressShimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.progress-text {
    font-weight: 700;
    color: #138496;
    font-size: 16px;
}

.progress-status {
    color: #6b7280;
    font-style: italic;
}

/* File Preview Area */
.file-preview-area {
    padding: 20px;
}

.file-preview-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    border: 2px solid #138496;
    box-shadow: 0 4px 16px rgba(19, 132, 150, 0.15);
    animation: slideInFromLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Image Preview */
.preview-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .preview-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .preview-image:hover img {
        transform: scale(1.05);
    }

/* File Icon */
.preview-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.file-type-icon {
    font-size: 48px;
    transition: transform 0.3s ease;
}

.file-preview-card:hover .file-type-icon {
    transform: scale(1.1) rotateY(180deg);
}

/* PDF Icon */
.file-type-icon.icon-pdf {
    color: #ef4444;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    padding: 16px;
    border-radius: 12px;
}

/* Word Icon */
.file-type-icon.icon-word {
    color: #2563eb;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 16px;
    border-radius: 12px;
}

/* Image Icon */
.file-type-icon.icon-image {
    color: #10b981;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    padding: 16px;
    border-radius: 12px;
}

/* File Info */
.file-info {
    flex: 1;
    min-width: 0;
}

.file-name-wrapper {
    margin-bottom: 8px;
}

.file-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    width: 100%;
}

.file-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Mobil için responsive tasarım */
@media (max-width: 768px) {
    .file-preview-card {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .preview-image,
    .preview-icon {
        align-self: center;
    }

    .file-info {
        width: 100%;
        text-align: center;
    }

    .file-name-wrapper {
        display: flex;
        justify-content: center;
    }

    .file-name {
        text-align: center;
    }

    .file-meta {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        justify-content: center;
    }

    .remove-file-btn {
        position: absolute;
        top: 16px;
        right: 16px;
    }
}

.file-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .file-type-badge.badge-pdf {
        background: linear-gradient(135deg, #fee2e2, #fecaca);
        color: #dc2626;
    }

    .file-type-badge.badge-word {
        background: linear-gradient(135deg, #dbeafe, #bfdbfe);
        color: #1d4ed8;
    }

    .file-type-badge.badge-image {
        background: linear-gradient(135deg, #d1fae5, #a7f3d0);
        color: #059669;
    }

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 420px;
    max-width: calc(100vw - 40px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    animation: slideInFromRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-notification.toast-success {
    border-left-color: #10b981;
}

.toast-notification.toast-error {
    border-left-color: #ef4444;
}

.toast-notification.toast-warning {
    border-left-color: #f59e0b;
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.toast-success .toast-icon {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #059669;
}

.toast-error .toast-icon {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #dc2626;
}

.toast-warning .toast-icon {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}

.toast-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    margin-bottom: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.toast-message {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.toast-close {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: auto;
}

    .toast-close:hover {
        background: #f3f4f6;
        color: #1f2937;
    }

/* ======================== */
/* APPLICATION QUERY MODAL STYLES */
/* ======================== */

/* ApplicationQuery Modal Border Radius */
#applicationQueryModal .modal-content {
    border-radius: 0.5rem;
    overflow: hidden;
}

#applicationQueryModal .modal-header {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

#applicationQueryModal .modal-body {
    padding: 1.5rem;
}

#applicationQueryModal .modal-footer {
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

/* ApplicationQuery Card Headers - Açık Mavi Ton */
#applicationQueryModal .card {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

#applicationQueryModal .card-header {
    background-color: #EDF1FC;
    color: #333;
    border: 2px solid #138496;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

#applicationQueryModal .card-header h6 {
    color: #333 !important;
    font-weight: 600;
}

#applicationQueryModal .card-header i {
        color: #138496 !important;
}

#applicationQueryModal .card-body {
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

/* Input Group Styling */
#applicationQueryModal .input-group {
    border-radius: 0.375rem;
    overflow: hidden;
}

#applicationQueryModal .form-control {
    border-radius: 0.375rem;
}

/* Alert Styling */
#applicationQueryModal .alert {
    border-radius: 0.5rem;
}

/* Badge Gradient Stilleri - Details.cshtml ile aynı */
#applicationQueryModal .badge.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none;
}

#applicationQueryModal .badge.bg-info {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
    border: none;
}

#applicationQueryModal .badge.bg-warning {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: #ffffff !important;
    border: none;
}

#applicationQueryModal .badge.bg-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: none;
}

#applicationQueryModal .badge.bg-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
    border: none;
}

#applicationQueryModal .badge.bg-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border: none;
}

/* Başvuru Türü Badge Stilleri - Details.cshtml ile aynı */
#applicationQueryModal .basvuru-turu-bireysel {
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%) !important;
    border: 2px solid #059669;
    color: #059669 !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

#applicationQueryModal .basvuru-turu-kurumsal {
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%) !important;
    border: 2px solid #283E51;
    color: #283E51 !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Durum Badge Stilleri */
#applicationQueryModal .badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Başvuru Sorgula Butonu - Sadece renk değişikliği */
#applicationQueryModal .modal-footer .btn-primary {
    background: linear-gradient(135deg, #17a2b8, #138496) !important;
    border: none !important;
    box-shadow: 0 4px 6px rgba(23, 162, 184, 0.2) !important;
    transition: all 0.3s ease !important;
}

#applicationQueryModal .modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, #138496, #117a8b) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(23, 162, 184, 0.3) !important;
}

#applicationQueryModal .modal-footer .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Kapat Butonu - Hover Efekti */
#applicationQueryModal .modal-footer .btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268) !important;
    border: none !important;
    box-shadow: 0 4px 6px rgba(108, 117, 125, 0.2) !important;
    transition: all 0.3s ease !important;
}

#applicationQueryModal .modal-footer .btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #545b62) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(108, 117, 125, 0.3) !important;
}

/* Modal Başlık Renk ve Font Ağırlığı */
#applicationQueryModal .modal-header .modal-title {
    color: #138496;
    font-weight: 700;
}

/* Input Focus Özellikleri */
#applicationQueryModal .form-control:focus {
    outline: none;
    border-color: #138496 !important;
    box-shadow: 0 0 0 3px rgba(19, 132, 150, 0.1) !important;
}
