/* Gelişmiş Anket Formu CSS */
:root {
    --primary-color: #4a6fdc;
    --primary-color-rgb: 74, 111, 220;
    --primary-color-light: rgba(74, 111, 220, 0.1);
    --border-color: #e9ecef;
    --text-color: #495057;
    --header-height: 60px;
}

.preview-container {
    background-color: #f9f9f9;
    min-height: calc(100vh - var(--header-height) - 81px);
    padding-top: 20px;
    padding-bottom: 20px;
}

.preview-form-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 30px;
    transition: transform 0.3s ease;
}

.preview-form-container:hover {
    transform: translateY(-5px);
}

.form-header {
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.form-header:after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.form-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* Soru Kartı Stilleri */
.question-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    margin-bottom: 25px;
    transition: all 0.3s ease;
    overflow: visible;
    position: relative;
}

.question-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.question-header {
    padding: 18px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    position: relative;
}

.question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 18px;
    margin-right: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.question-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

.question-text.required:after {
    content: "*";
    color: #ff5370;
    margin-left: 5px;
}

/* Soru Tipi Etiketleri */
.question-type-badge {
    position: absolute;
    top: 15px;
    right: 20px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    animation: fadeInRight 0.3s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Etiket renkleri */
.question-type-badge.badge-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.question-type-badge.badge-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    color: white;
}

.question-type-badge.badge-info {
    background: linear-gradient(135deg, #2196F3 0%, #64B5F6 100%);
    color: white;
}

.question-type-badge.badge-warning {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    color: #333;
}

.question-type-badge.badge-danger {
    background: linear-gradient(135deg, #ED213A 0%, #93291E 100%);
    color: white;
}

.question-type-badge.badge-secondary {
    background: linear-gradient(135deg, #636e72 0%, #95a5a6 100%);
    color: white;
}

/* Hover efekti */
.question-type-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    cursor: default;
}

.question-body {
    padding: 25px;
    background-color: white;
}

/* Modern Seçenek Listesi Stilleri */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
}

.form-check {
    padding: 0;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    margin-left: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    box-shadow: 5px 5px 15px #e0e0e0, -5px -5px 15px #ffffff;
}

.form-check:hover {
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    border-color: var(--primary-color);
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Ripple efekti için */
.form-check::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(74, 111, 220, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.form-check:active::after {
    width: 300px;
    height: 300px;
}

.form-check-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    margin: 0;
    z-index: 2;
}

/* Prevent overlay input from swallowing interactions in sub-options area */
.form-check:has(.sub-options) .sub-options,
.form-check:has(.sub-options) .sub-options * {
    pointer-events: auto;
}

.form-check:has(.sub-options) .form-check-input {
    pointer-events: auto;
    /* default elsewhere */
}

/* Let clicks inside the sub-options area reach its own controls, not the hidden overlay input */
.form-check .sub-options,
.form-check .sub-options * {
    position: relative;
    z-index: 4;
}

.form-check-label {
    font-size: 16px;
    color: #495057;
    font-weight: 500;
    cursor: pointer;
    padding: 18px 60px 18px 25px;
    margin: 0;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    min-height: 60px;
    transition: all 0.3s ease;
}

/* Modern Seçili Durum Stilleri */
.form-check:has(.form-check-input:checked) {
    background: linear-gradient(145deg, rgba(74, 111, 220, 0.1), rgba(74, 111, 220, 0.05));
    border-color: var(--primary-color);
    border-width: 2px;
    box-shadow: 0 0 20px rgba(74, 111, 220, 0.3), inset 0 0 15px rgba(74, 111, 220, 0.1);
    transform: translateX(10px) scale(1.03);
    animation: selectPulse 0.6s ease-out;
}

.form-check:has(.form-check-input:checked) .form-check-label {
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 0 0 1px rgba(74, 111, 220, 0.3);
}

/* Seçili item için glow efekti */
.form-check:has(.form-check-input:checked)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(74, 111, 220, 0.1), transparent);
    animation: shimmer 2s infinite;
}

/* Fallback için JavaScript ile kontrol edilecek seçili class */
.form-check.selected {
    background: linear-gradient(145deg, rgba(74, 111, 220, 0.1), rgba(74, 111, 220, 0.05));
    border-color: var(--primary-color);
    border-width: 2px;
    box-shadow: 0 0 20px rgba(74, 111, 220, 0.3), inset 0 0 15px rgba(74, 111, 220, 0.1);
    transform: translateX(10px) scale(1.03);
    animation: selectPulse 0.6s ease-out;
}

.form-check.selected .form-check-label {
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 0 0 1px rgba(74, 111, 220, 0.3);
}

/* Animasyonlar */
@keyframes selectPulse {
    0% {
        transform: translateX(0) scale(1);
    }

    50% {
        transform: translateX(15px) scale(1.05);
    }

    100% {
        transform: translateX(10px) scale(1.03);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Modern Alt Seçenekler Stilleri */
.sub-options {
    padding: 20px 25px 25px 45px;
    background: linear-gradient(145deg, rgba(248, 249, 250, 0.9), rgba(255, 255, 255, 0.9));
    border-top: 2px solid rgba(74, 111, 220, 0.2);
    margin-top: 0;
    display: none;
    flex-wrap: nowrap;
    /* tek satırda kalsın */
    z-index: 3;
    /* ensure sub-options sit above the full-card input overlay */
    animation: slideDown 0.4s ease-out;
}

/* Alt seçenek açılma animasyonu */
@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
        width: 100%;
        overflow: hidden;
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.sub-options::before {
    content: '↳';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--primary-color);
    animation: bounceArrow 1s ease-in-out infinite;
}

@keyframes bounceArrow {

    0%,
    100% {
        transform: translateY(-50%) translateX(0);
    }

    50% {
        transform: translateY(-50%) translateX(5px);
    }
}

.sub-options select {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    background-color: white;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    position: relative;
    /* stay above the radio/checkbox overlay */
    z-index: 4;
}

.sub-options select:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sub-options select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(74, 111, 220, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
    outline: none;
    transform: translateY(-2px);
}

/* Modern Radio ve Checkbox Stilleri */
.form-check-label::before {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 3px solid #d0d0d0;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hover efekti */
.form-check:hover .form-check-label::before {
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(74, 111, 220, 0.3);
}

/* Radio button seçili durumu */
.form-check:has(.form-check-input[type="radio"]:checked)>.form-check-label::before,
.form-check.selected>.form-check-label::before {
    border-color: var(--primary-color);
    background: linear-gradient(145deg, var(--primary-color), #5a7fe8);
    animation: radioSelect 0.4s ease-out;
}

.form-check:has(.form-check-input[type="radio"]:checked)>.form-check-label::after,
.form-check.selected>.form-check-label::after {
    content: '';
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    animation: radioDot 0.3s ease-out 0.1s both;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Checkbox için farklı stil */
.form-check:has(.form-check-input[type="checkbox"])>.form-check-label::before {
    border-radius: 6px;
}

.form-check:has(.form-check-input[type="checkbox"]:checked)>.form-check-label::before,
.form-check.selected>.form-check-label::before {
    border-color: var(--primary-color);
    background: linear-gradient(145deg, var(--primary-color), #5a7fe8);
    animation: checkboxSelect 0.4s ease-out;
}

.form-check:has(.form-check-input[type="checkbox"]:checked)>.form-check-label::after,
.form-check.selected>.form-check-label::after {
    content: '✓';
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    width: auto;
    height: auto;
    background-color: transparent;
    border-radius: 0;
    animation: checkmark 0.3s ease-out 0.1s both;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Seçim animasyonları */
@keyframes radioSelect {
    0% {
        transform: translateY(-50%) scale(1);
    }

    50% {
        transform: translateY(-50%) scale(1.3);
    }

    100% {
        transform: translateY(-50%) scale(1);
    }
}

@keyframes radioDot {
    0% {
        transform: translateY(-50%) scale(0);
        opacity: 0;
    }

    50% {
        transform: translateY(-50%) scale(1.2);
    }

    100% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
}

@keyframes checkboxSelect {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }

    50% {
        transform: translateY(-50%) rotate(10deg) scale(1.2);
    }

    100% {
        transform: translateY(-50%) rotate(0deg) scale(1);
    }
}

@keyframes checkmark {
    0% {
        transform: translateY(-50%) scale(0) rotate(-45deg);
        opacity: 0;
    }

    50% {
        transform: translateY(-50%) scale(1.3) rotate(0deg);
    }

    100% {
        transform: translateY(-50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Hover'da label efekti */
.form-check:hover .form-check-label {
    padding-left: 30px;
    color: var(--primary-color);
}

/* Seçeneklerde ikon desteği */
.form-check-label::first-letter {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--primary-color);
}

/* Özel hover renkleri */
.form-check:nth-child(odd):hover {
    background: linear-gradient(145deg, #f0f8ff, #e6f3ff);
}

.form-check:nth-child(even):hover {
    background: linear-gradient(145deg, #f8f0ff, #f3e6ff);
}

/* Form Alanları */
.form-control {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(74, 111, 220, 0.25);
}

/* Footer */
.form-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 24px;
    font-weight: 500;
    font-size: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Hata durumu için vurgulama */
.error-highlight {
    animation: errorPulse 1.5s ease-in-out;
    box-shadow: 0 0 0 2px rgba(255, 83, 112, 0.5) !important;
}

@keyframes errorPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 83, 112, 0.5);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(255, 83, 112, 0.2);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 83, 112, 0);
    }
}

/* Puanlama Komponenti */
.rating-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin: 0;
    position: relative;
    --steps: 5;
    /* varsayılan */
    background: linear-gradient(to right,
            #E97777 0%,
            #E97777 20%,
            #F7B538 20%,
            #F7B538 40%,
            #F9D949 40%,
            #F9D949 60%,
            #7FCDCD 60%,
            #7FCDCD 80%,
            #64C466 80%,
            #64C466 100%);
    border-radius: 30px;
    padding: 3px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Sol ve sağ işaretler - wrapper ile sarmalayalım */
.rating-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    padding: 0 80px;
    /* Kenar boşlukları eksi ve artı için */
    width: fit-content;
    /* Desktop: orijinal görünüm */
    max-width: 100%;
}

.rating-wrapper::before,
.rating-wrapper::after {
    position: absolute;
    font-size: 48px;
    font-weight: bold;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
    font-family: Arial, sans-serif;
    z-index: 1;
}

.rating-wrapper::before {
    content: "-";
    left: 20px;
    color: #E97777;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rating-wrapper::after {
    content: "+";
    right: 20px;
    color: #64C466;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rating-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    /* Desktop: orijinal sabit genişlik */
    height: 60px;
    background: white;
    color: #333;
    font-weight: 700;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    border: none;
    flex: 1;
}

/* Rating numaraları için span stili */
.rating-item span {
    display: block;
    color: inherit;
    font-weight: inherit;
    font-size: inherit;
    line-height: 1;
    user-select: none;
    pointer-events: none;
    text-shadow: none;
    -webkit-text-stroke: 0;
}

/* İlk ve son item'ların köşelerini yuvarlat */
.rating-item:first-child {
    border-radius: 25px 0 0 25px;
}

.rating-item:last-child {
    border-radius: 0 25px 25px 0;
}

/* Hover efekti */
.rating-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Gizli radio butonları */
.rating-item input[type="radio"] {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
    margin: 0;
    z-index: 1;
}

/* Her seviye için renk tanımlamaları */
.rating-item[data-value="1"] {
    background-color: #E97777;
    color: white;
}

.rating-item[data-value="2"] {
    background-color: #F7B538;
    color: white;
}

.rating-item[data-value="3"] {
    background-color: #F9D949;
    color: #333;
}

.rating-item[data-value="4"] {
    background-color: #7FCDCD;
    color: white;
}

.rating-item[data-value="5"] {
    background-color: #64C466;
    color: white;
}

/* Seçili durum için özelleştirme */
.rating-item.selected {
    transform: scale(1.1) translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    z-index: 20;
    position: relative;
}

/* Seçili item'dan sonra ok göster */
.rating-item.selected::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid;
    border-top-color: inherit;
}

/* Mobil için responsive ayarlar (sadece küçük ekranlarda kompakt görünüm) */
@media (max-width: 576px) {
    .rating-wrapper {
        padding: 0;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .rating-wrapper::before,
    .rating-wrapper::after {
        content: none !important;
    }

    .rating-container {
        flex-wrap: nowrap;
        width: 100%;
        overflow: visible;
        box-sizing: border-box;
        gap: 0;
    }

    .rating-item {
        width: auto;
        flex: 1 0 0;
        max-width: none;
        height: 40px;
        font-size: 16px;
        box-sizing: border-box;
    }
}

/* Modern Emoji Animasyonları */
.memnuniyet {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 20px 10px;
    flex-wrap: nowrap;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.memnuniyet label {
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 20px;
    padding: 15px 10px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    box-shadow: 10px 10px 30px #d1d1d1, -10px -10px 30px #ffffff;
    text-align: center;
    flex: 1 1 0;
    min-width: 0;
}

.memnuniyet label:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15),
        inset 0 -3px 0 rgba(0, 0, 0, 0.1);
}

/* Gizli radio button */
.memnuniyet input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Emoji container */
.memnuniyet .checkmark {
    display: block;
    position: relative;
    margin-bottom: 10px;
}

.memnuniyet .emoji-icon {
    width: 50px;
    height: 50px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: grayscale(50%) brightness(0.9);
    display: block;
    margin: 0 auto;
}

/* Hover efekti */
.memnuniyet label:hover .emoji-icon {
    transform: scale(1.2) rotate(10deg);
    filter: grayscale(0%) brightness(1.1);
    animation: emojiShake 0.5s ease-in-out;
}

/* Seçili durum */
.memnuniyet input[type="radio"]:checked+.checkmark {
    transform: scale(1.3);
    filter: grayscale(0%) brightness(1.2) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    animation: emojiSelect 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Seçili label */
.memnuniyet input[type="radio"]:checked~.yazi {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 16px;
    animation: textPop 0.3s ease-out;
}

/* Seçili arka plan efekti */
.memnuniyet input[type="radio"]:checked+.checkmark::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(74, 111, 220, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: rippleEffect 0.6s ease-out;
    z-index: -1;
}

/* Seçili gösterge */
.memnuniyet input[type="radio"]:checked+.checkmark::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 25px;
    height: 25px;
    background: none;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    animation: checkmarkPop 0.3s ease-out 0.3s both;
    box-shadow: none;
}

/* Yazı stili */
.memnuniyet .yazi {
    display: block;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 5px;
}

/* Animasyonlar */
@keyframes emojiSelect {
    0% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(0.9) rotate(-5deg);
    }

    50% {
        transform: scale(1.4) rotate(15deg);
    }

    75% {
        transform: scale(1.2) rotate(-5deg);
    }

    100% {
        transform: scale(1.3) rotate(0deg);
    }
}

@keyframes emojiShake {

    0%,
    100% {
        transform: scale(1.2) rotate(10deg);
    }

    25% {
        transform: scale(1.2) rotate(-10deg);
    }

    50% {
        transform: scale(1.2) rotate(10deg);
    }

    75% {
        transform: scale(1.2) rotate(-10deg);
    }
}

@keyframes rippleEffect {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes textPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Hover'da floating animasyon */
@keyframes floatingEmoji {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.memnuniyet label:hover .emoji-icon {
    animation: floatingEmoji 2s ease-in-out infinite;
}

/* Özel emoji renkleri ve gölgeler */
.memnuniyet label:nth-child(1):hover {
    background: linear-gradient(145deg, #fff5f5, #ffe0e0);
}

.memnuniyet label:nth-child(2):hover {
    background: linear-gradient(145deg, #fff8f0, #ffe8d0);
}

.memnuniyet label:nth-child(3):hover {
    background: linear-gradient(145deg, #fffef0, #fff8d0);
}

.memnuniyet label:nth-child(4):hover {
    background: linear-gradient(145deg, #f0f8ff, #e0f0ff);
}

.memnuniyet label:nth-child(5):hover {
    background: linear-gradient(145deg, #f0fff0, #e0ffe0);
}

/* Mobil Görünüm Optimizasyonları */
@media (max-width: 768px) {
    .preview-form-container {
        padding: 20px;
    }

    .form-title {
        font-size: 24px;
    }

    .question-header {
        padding: 15px;
        padding-right: 50px;
        /* Etiket için boşluk */
    }

    .question-text {
        font-size: 16px;
        margin-right: 120px;
        /* Etiket için boşluk */
    }

    .question-type-badge {
        font-size: 10px;
        padding: 4px 8px;
        top: 10px;
        right: 10px;
    }

    .question-body {
        padding: 15px;
    }

    .form-check {
        padding: 10px;
    }

    /* Mobil emoji stilleri */
    .memnuniyet {
        gap: 2px;
        padding: 8px 2px;
        justify-content: space-between;
    }

    .memnuniyet label {
        flex: 1 1 0;
        padding: 6px 2px;
        box-shadow: 3px 3px 10px #d1d1d1, -3px -3px 10px #ffffff;
        min-width: 0;
        border-radius: 10px;
    }

    .memnuniyet .emoji-icon {
        width: 32px;
        height: 32px;
    }

    .memnuniyet .yazi {
        font-size: 10px;
        line-height: 1.1;
        margin-top: 2px;
    }

    /* Seçili gösterge küçültme */
    .memnuniyet input[type="radio"]:checked+.checkmark::after {
        width: 16px;
        height: 16px;
        font-size: 10px;
        bottom: -2px;
        right: -2px;
    }
}

/* Çok küçük ekranlar için (480px ve altı) */
@media (max-width: 480px) {
    .memnuniyet {
        gap: 3px;
        padding: 8px 2px;
    }

    .memnuniyet label {
        flex: 1 1 0;
        padding: 5px 1px;
        box-shadow: 3px 3px 10px #d1d1d1, -3px -3px 10px #ffffff;
        min-width: 0;
        border-radius: 10px;
    }

    .memnuniyet .emoji-icon {
        width: 32px;
        height: 32px;
    }

    .memnuniyet .yazi {
        font-size: 9px;
        line-height: 1;
        margin-top: 1px;
    }

    .memnuniyet input[type="radio"]:checked+.checkmark::after {
        width: 14px;
        height: 14px;
        font-size: 8px;
        bottom: -1px;
        right: -1px;
    }
}

/* Extra küçük ekranlar için (360px ve altı) */
@media (max-width: 360px) {
    .memnuniyet {
        gap: 2px;
        padding: 5px 0;
    }

    .memnuniyet label {
        padding: 4px 0;
        flex: 1 1 0;
        min-width: 0;
    }

    .memnuniyet .emoji-icon {
        width: 26px;
        height: 26px;
    }

    .memnuniyet .yazi {
        font-size: 8px;
        line-height: 0.9;
    }

    .memnuniyet input[type="radio"]:checked+.checkmark::after {
        width: 12px;
        height: 12px;
        font-size: 7px;
    }
}

/* ========================================= */
/* VISUAL CHOICE QUESTION STYLES */
/* ========================================= */

/* Container for visual choice options */
.visual-choice-options {
    display: flex;
    flex-direction: column;
    margin: 0;
    position: relative;
    width: 100%;
    height: 100%;
}

/* Hidden radio input */
.visual-option-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

/* Content container for text and image */
.visual-option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    text-align: center;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    min-height: 180px;
}

/* Selected state styles */
.visual-option-radio:checked+.visual-option-content {
    background: linear-gradient(145deg, #e3f2fd, #f0f8ff);
}

.visual-option-radio:checked+.visual-option-content::before {
    content: '\2713';
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Text content */
.visual-option-text {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    line-height: 1.4;
    text-align: center;
    margin: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.visual-option-item:hover .visual-option-text {
    color: var(--primary-color);
    transform: scale(1.05);
}

/* Desktop layout - side by side */
@media (min-width: 768px) {
    .visual-choice-options {
        flex-direction: row;
        justify-content: space-around;
        flex-wrap: wrap;
        gap: 24px;
        padding: 20px;
    }

    .visual-option-item {
        flex: 1;
        max-width: 320px;
        margin: 0;
    }


    .visual-option-radio:checked+.visual-option-content::before {
        width: 20px;
        height: 20px;
        font-size: 10px;
        top: 6px;
        right: 6px;
    }
}

/* Dark mode support for visual choices */
@media (prefers-color-scheme: dark) {
    .visual-option-item {
        background: linear-gradient(145deg, #2d3748, #4a5568);
        border-color: #4a5568;
    }

    .visual-option-item:hover {
        background: linear-gradient(145deg, #2d3748, #3182ce);
        border-color: #3182ce;
    }

    .visual-option-radio:checked+.visual-option-content {
        background: linear-gradient(145deg, #2a4365, #3182ce);
    }

    .visual-option-text {
        color: #e2e8f0;
    }

    .visual-option-item:hover .visual-option-text {
        color: #90cdf4;
    }
}

/* Print styles for visual choices */
@media print {
    .visual-choice-options {
        display: block;
        break-inside: avoid;
    }

    .visual-option-item {
        border: 1px solid #000;
        margin-bottom: 10px;
        break-inside: avoid;
        box-shadow: none;
        background: white;
    }

    .visual-option-content {
        padding: 15px;
        min-height: auto;
    }

    .visual-option-image img {
        max-height: 60px;
        box-shadow: none;
    }

    .visual-option-radio:checked+.visual-option-content::before {
        display: none;
    }

    .visual-option-radio:checked+.visual-option-content {
        background: #f0f0f0;
    }
}

/* ============================================
   NPS (Net Promoter Score) Stilleri
   ============================================ */
.nps-question {
    padding: 20px 0;
}

.nps-scale {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.nps-item {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nps-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.nps-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* Detractor (0-6) - Kırmızı tonları */
.nps-detractor .nps-number {
    background: linear-gradient(145deg, #dc3545, #c82333);
}

/* Passive (7-8) - Sarı/Turuncu tonları */
.nps-passive .nps-number {
    background: linear-gradient(145deg, #ffc107, #e0a800);
    color: #333;
}

/* Promoter (9-10) - Yeşil tonları */
.nps-promoter .nps-number {
    background: linear-gradient(145deg, #28a745, #1e7e34);
}

/* Hover efektleri */
.nps-item:hover .nps-number {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nps-detractor:hover .nps-number {
    background: linear-gradient(145deg, #e74c5c, #dc3545);
}

.nps-passive:hover .nps-number {
    background: linear-gradient(145deg, #ffcd39, #ffc107);
}

.nps-promoter:hover .nps-number {
    background: linear-gradient(145deg, #34ce57, #28a745);
}

/* Seçili durum */
.nps-item input[type="radio"]:checked + .nps-number {
    transform: scale(1.15);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5), 0 5px 20px rgba(0, 0, 0, 0.3);
    border-color: #fff;
}

.nps-detractor input[type="radio"]:checked + .nps-number {
    background: linear-gradient(145deg, #ff6b7a, #dc3545);
}

.nps-passive input[type="radio"]:checked + .nps-number {
    background: linear-gradient(145deg, #ffe066, #ffc107);
}

.nps-promoter input[type="radio"]:checked + .nps-number {
    background: linear-gradient(145deg, #5fd87d, #28a745);
}

/* NPS Takip Sorusu */
.nps-follow-up {
    animation: slideDown 0.3s ease;
}

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

/* Mobil uyumluluk */
@media (max-width: 576px) {
    .nps-scale {
        gap: 4px;
    }
    
    .nps-number {
        width: 32px;
        height: 32px;
        font-size: 13px;
        border-radius: 6px;
    }
    
    .nps-item input[type="radio"]:checked + .nps-number {
        transform: scale(1.1);
    }
}

/* NPS Analiz Kartları - Sonuçlar sayfası için */
.nps-gauge {
    position: relative;
    width: 200px;
    height: 100px;
    margin: 0 auto;
}

.nps-score-display {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.nps-score-label {
    font-size: 14px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nps-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

.nps-distribution-bar {
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
}

.nps-distribution-bar .promoter-segment {
    background: linear-gradient(90deg, #28a745, #34ce57);
}

.nps-distribution-bar .passive-segment {
    background: linear-gradient(90deg, #ffc107, #ffcd39);
}

.nps-distribution-bar .detractor-segment {
    background: linear-gradient(90deg, #dc3545, #e74c5c);
}

/* NPS Trend Grafiği */
.nps-trend-positive {
    color: #28a745;
}

.nps-trend-negative {
    color: #dc3545;
}

.nps-trend-neutral {
    color: #6c757d;
}

/* Dark mode desteği */
@media (prefers-color-scheme: dark) {
    .nps-number {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }
    
    .nps-item input[type="radio"]:checked + .nps-number {
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), 0 5px 20px rgba(0, 0, 0, 0.5);
    }
}