/* ============================================
   GÜVENLİ ANKET PLATFORMU - ÖZEL STİLLER
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Turaş Renk Paleti (Revize) */
    --primary-color: #11009E;
    /* Turaş Laciverti */
    --primary-dark: #0D007A;
    --secondary-color: #212529;
    /* Koyu Gri / Siyah */
    --accent-color: #18ACED;
    /* Cyan Blue */

    --success-color: #06d6a0;
    --warning-color: #ffd166;
    --danger-color: #ef476f;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
}

/* ============================================
   GENEL STILLER
   ============================================ */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ============================================
   GİRİŞ SAYFASI
   ============================================ */
.login-page {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 3rem;
    max-width: 420px;
    width: 100%;
    margin: 1rem;
}

.login-card .logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
}

.login-card h1 {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.login-card .subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 2rem;
}

/* ============================================
   FORM STİLLERİ
   ============================================ */
.form-control-lg {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control-lg:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ============================================
   OTP GİRİŞ ALANI
   ============================================ */
.otp-inputs {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.otp-inputs input {
    width: 55px;
    height: 65px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.otp-inputs input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.15);
    outline: none;
}

/* ============================================
   DASHBOARD KARTLARI
   ============================================ */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.stat-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card .icon.primary {
    background: linear-gradient(135deg, #4361ee, #3a56d4);
}

.stat-card .icon.success {
    background: linear-gradient(135deg, #06d6a0, #05b88a);
}

.stat-card .icon.warning {
    background: linear-gradient(135deg, #ffd166, #f5c542);
}

.stat-card .icon.danger {
    background: linear-gradient(135deg, #ef476f, #d93a5c);
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-text);
}

.stat-card .label {
    color: #6c757d;
    font-size: 0.9rem;
}

/* ============================================
   ANKET KARTLARI
   ============================================ */
.survey-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1rem;
}

.survey-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.survey-card.completed {
    border-left-color: var(--success-color);
}

.survey-card.closed {
    border-left-color: #6c757d;
    opacity: 0.7;
}

.survey-card h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.survey-card .meta {
    font-size: 0.85rem;
    color: #6c757d;
}

.survey-card .badge {
    font-weight: 500;
}

/* ============================================
   SORU ALANI
   ============================================ */
.question-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.question-card .question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 0.75rem;
}

.question-card .question-text {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.question-card .form-check {
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.question-card .form-check:hover {
    background: #e9ecef;
}

.question-card .form-check-input:checked~.form-check-label {
    font-weight: 600;
}

/* ============================================
   TABLO STİLLERİ
   ============================================ */
.table-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.table-card .table {
    margin-bottom: 0;
}

.table-card .table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.table-card .table thead th {
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.table-card .table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* ============================================
   ADMIN PANELİ
   ============================================ */
.page-header {
    background: white;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

.page-header .breadcrumb {
    margin-bottom: 0;
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.spinner-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   RESPONSIVE AYARLAR
   ============================================ */
@media (max-width: 768px) {
    .login-card {
        padding: 2rem;
    }

    .otp-inputs input {
        width: 45px;
        height: 55px;
        font-size: 1.25rem;
    }

    .stat-card .value {
        font-size: 1.5rem;
    }
}

/* ============================================
   ANİMASYONLAR
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes shake {

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

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

.shake {
    animation: shake 0.5s ease;
}

/* Bölüm Başlığı Stilleri */
.section-header {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.08), rgba(114, 9, 183, 0.05));
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.section-header .section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.25rem;
}

.section-header .section-description {
    font-size: 0.95rem;
}

/* ============================================
   GELİŞMİŞ ANKET DÜZENLEYİCİ
   ============================================ */

/* Soru Tipi Seçici */
.question-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.question-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.question-type-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.15);
}

.question-type-btn.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(114, 9, 183, 0.1));
}

.question-type-btn i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.question-type-btn span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--dark-text);
}

/* Gelişmiş Soru Kartı */
.advanced-question-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    overflow: hidden;
}

.advanced-question-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.advanced-question-card.dragging {
    opacity: 0.5;
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(67, 97, 238, 0.3);
}

.advanced-question-card .card-header {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(114, 9, 183, 0.05));
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: move;
}

.advanced-question-card .drag-handle {
    color: #6c757d;
    cursor: grab;
    padding: 0.5rem;
    transition: all 0.2s;
    font-size: 1.25rem;
    border-radius: 6px;
}

.advanced-question-card .drag-handle:hover {
    color: var(--primary-color);
    background: rgba(67, 97, 238, 0.1);
}

.advanced-question-card .drag-handle:active {
    cursor: grabbing;
}

.advanced-question-card .question-type-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
}

.advanced-question-card .question-type-icon.text {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.advanced-question-card .question-type-icon.textarea {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

.advanced-question-card .question-type-icon.radio {
    background: linear-gradient(135deg, #fc5c7d, #6a82fb);
}

.advanced-question-card .question-type-icon.checkbox {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.advanced-question-card .question-type-icon.rating {
    background: linear-gradient(135deg, #ffd166, #ef476f);
}

.advanced-question-card .question-type-icon.number {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.advanced-question-card .question-type-icon.date {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.advanced-question-card .question-type-icon.dropdown {
    background: linear-gradient(135deg, #fa709a, #fee140);
}

.advanced-question-card .question-type-icon.scale {
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
}

.advanced-question-card .question-type-icon.email {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.advanced-question-card .question-type-icon.phone {
    background: linear-gradient(135deg, #06d6a0, #05b88a);
}

.advanced-question-card .question-meta {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.advanced-question-card .question-number {
    font-weight: 700;
    color: var(--primary-color);
}

.advanced-question-card .question-type-label {
    font-size: 0.75rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.advanced-question-card .card-actions {
    display: flex;
    gap: 0.25rem;
}

.advanced-question-card .card-actions .btn {
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
}

.advanced-question-card .card-body {
    padding: 1.25rem;
}

.advanced-question-card .question-input {
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-bottom: 2px solid #e9ecef;
    border-radius: 0;
    padding: 0.5rem 0;
    background: transparent;
    transition: border-color 0.3s;
}

.advanced-question-card .question-input:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.advanced-question-card .question-input::placeholder {
    color: #adb5bd;
}

/* Seçenek Listesi */
.options-list {
    margin-top: 1rem;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}

.option-item:hover {
    background: #e9ecef;
}

.option-item .option-drag {
    color: #adb5bd;
    cursor: move;
}

.option-item input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.25rem;
}

.option-item input:focus {
    outline: none;
}

.option-item .btn-remove-option {
    color: #dc3545;
    opacity: 0;
    transition: opacity 0.2s;
}

.option-item:hover .btn-remove-option {
    opacity: 1;
}

.add-option-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    color: var(--primary-color);
    background: rgba(67, 97, 238, 0.1);
    border: 2px dashed rgba(67, 97, 238, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.add-option-btn:hover {
    background: rgba(67, 97, 238, 0.2);
    border-color: var(--primary-color);
}

/* Soru Ekleme Butonu */
.add-question-area {
    border: 2px dashed #dee2e6;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    background: rgba(248, 249, 250, 0.5);
    transition: all 0.3s;
    cursor: pointer;
}

.add-question-area:hover {
    border-color: var(--primary-color);
    background: rgba(67, 97, 238, 0.05);
}

.add-question-area i {
    font-size: 2.5rem;
    color: #adb5bd;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.add-question-area:hover i {
    color: var(--primary-color);
}

/* Soru Ayarları Toggle */
.question-settings {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.question-settings .form-check {
    margin-bottom: 0.5rem;
}

.question-settings .form-check:last-child {
    margin-bottom: 0;
}

/* Sortable Placeholder */
.sortable-ghost {
    opacity: 0.4;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(114, 9, 183, 0.1));
}

.sortable-chosen {
    box-shadow: 0 15px 40px rgba(67, 97, 238, 0.25);
}

/* Collapsed Question */
.advanced-question-card.collapsed .card-body {
    display: none;
}

.advanced-question-card.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

/* Anket Önizleme Panel */
.preview-panel {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 1rem;
}

.preview-panel .preview-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem;
    border-radius: 16px 16px 0 0;
}

.preview-panel .preview-body {
    padding: 1rem;
    max-height: 60vh;
    overflow-y: auto;
}

/* Responsive */
@media (max-width: 992px) {
    .login-card {
        padding: 2rem;
    }
}

/* ZORUNLU MOBIL GIZLEME */
@media (max-width: 768px) {
    .table-card .table thead th:nth-child(1),
    .table-card .table tbody td:nth-child(1),
    .table-card .table thead th:nth-child(5),
    .table-card .table tbody td:nth-child(5),
    .table-card .table thead th:nth-child(6),
    .table-card .table tbody td:nth-child(6) {
        display: none !important;
    }
    
    .table-card .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        display: block;
        width: 100%;
    }
}