/*
 * IELTS AI Writer - Main Stylesheet
 * Version: 5.9.1
 */

/* --- Genel Kapsayıcılar --- */
.iaw-container,
.iaw-progress-report,
.iaw-submission-detail,
.iaw-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

/* --- Başlıklar --- */
.iaw-container h3,
.iaw-progress-report h2,
.iaw-submission-detail h3,
.iaw-submission-detail h4,
.iaw-dashboard h2,
.iaw-dashboard h3,
.iaw-feedback-card h5 {
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
    margin-top: 0;
}

.iaw-feedback-card h5 {
    font-size: 1.1em;
    margin-bottom: 15px;
}

/* --- Kişisel Panel --- */
.iaw-dashboard .welcome-message {
    font-size: 1.2em;
    color: #374151;
    border-bottom: none;
}

.iaw-stat-cards {
    display: flex;
    gap: 20px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.iaw-stat-card {
    flex: 1;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    min-width: 180px;
}

.iaw-stat-card.streak .stat-value {
    color: #f97316;
}

.iaw-stat-card .stat-value {
    display: block;
    font-size: 2.5em;
    font-weight: 700;
    color: #2563eb;
}

.iaw-stat-card .stat-label {
    display: block;
    font-size: 1em;
    color: #6b7280;
    margin-top: 5px;
}

.iaw-error-analysis {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #facc15;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.iaw-error-analysis h3 {
    border-bottom: none;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.iaw-error-analysis ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.iaw-error-analysis li {
    background-color: #ffffff;
    padding: 10px 15px;
    border: 1px solid #fde68a;
    border-radius: 6px;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4b5563;
}

.iaw-error-analysis li:last-child {
    margin-bottom: 0;
}

.iaw-recent-activity h3 {
    font-size: 1.5em;
    color: #111827;
}

.iaw-recent-activity ul {
    list-style: none;
    padding: 0;
}

.iaw-recent-activity li {
    display: flex;
    justify-content: space-between;
    padding: 15px 10px;
    border-bottom: 1px solid #e5e7eb;
}

.iaw-recent-activity li:last-child {
    border-bottom: none;
}

.iaw-recent-activity .activity-score {
    font-weight: 700;
    font-size: 1.1em;
    color: #111827;
}

.iaw-action-button {
    display: inline-block;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;

    /* Bu efekt için position: relative ve overflow: hidden şart */
    position: relative;
    overflow: hidden;

    /* z-index, yazının ::before katmanının üstünde kalmasını sağlar */
    z-index: 1;

    /* Sadece metin renginin değişimini yavaşlatıyoruz */
    transition: color 0.4s ease;
}

/* Arka planda kayacak olan katmanı (pseudo-element) yaratıyoruz */
.iaw-action-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Bu, hover anında görünecek olan renk */
    background-color: #1D4ED8;
    /* Koyu mavi */

    /* Başlangıçta görünmemesi için solda gizli (veya scaleX(0)) */
    transform: scaleX(0);
    transform-origin: left;
    /* Sol taraftan sağa doğru açılmasını sağlar */

    /* Transform için geçiş efekti */
    transition: transform 0.4s cubic-bezier(0.5, 0, 0.3, 1);

    /* Yazının arkasında kalması için */
    z-index: -1;
}



/* ::before katmanının (arka planın) dolmasını tetikle */
.iaw-action-button:hover::before {
    transform: scaleX(1);
}

/* ===================================================================
 * Yazı Yazma Formu (Modal Entegreli ve Estetik Güncelleme)
 * =================================================================== */

/* --- 1. Konu Seçme Tetikleyicisi (GÜNCELLENDİ) --- */
#iaw-topic-trigger {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    /* Beyaz yerine hafif gri bir arka plan */
    background-color: #f9fafb;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #374151;
}

#iaw-topic-trigger:hover {
    /* Hover efektini daha belirgin yap */
    border-color: #9ca3af;
}

#iaw-topic-trigger.active {
    outline: none;
    border-color: #2563eb;
    background-color: #fff;
    /* Aktif olunca tekrar beyaz olsun */
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

#iaw-topic-trigger-text {
    color: #6b7280;
}

#iaw-topic-trigger-text.selected {
    color: #111827;
    font-weight: 500;
}

#iaw-topic-trigger svg {
    color: #6b7280;
    width: 20px;
    height: 20px;
}

/* --- 2. Konu Seçme Modalı (Aynı kaldı) --- */
#iaw-topic-modal-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    z-index: 1000;
}

#iaw-topic-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

#iaw-topic-modal-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

#iaw-topic-modal-overlay.active #iaw-topic-modal-content {
    transform: scale(1);
}

.iaw-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.iaw-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    border-bottom: none;
    padding-bottom: 0;
}

#iaw-modal-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
}

#iaw-modal-close-btn:hover {
    color: #111827;
}

.iaw-modal-body {
    padding: 24px;
    overflow-y: auto;
}

#iaw-topic-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.iaw-topic-item {
    width: 100%;
    padding: 16px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #1f2937;
}

.iaw-topic-item-task {
    display: block;
    font-size: 0.9em;
    color: #6b7280;
    margin-top: 2px;
}

.iaw-topic-item:hover:not(:disabled) {
    border-color: #2563eb;
    background-color: #f9fafb;
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.1);
}

.iaw-topic-item:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.7;
}


/* --- 3. Soru Metni Alanı (GÜNCELLENDİ) --- */
#iaw-selected-topic-text {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 16px 24px;
    border-radius: 16px;
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
    margin-bottom: 24px;
    display: none;
    word-break: break-word;
    /* Ensure long words don't overflow */
}

/* --- 4. Yazı Alanı (Textarea - GÜNCELLENDİ) --- */
#iaw-essay-text {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    /* Artık tüm köşeler yuvarlak */
    font-size: 16px;
    line-height: 1.5;

    /* DEĞİŞTİ: Artık üstteki tetikleyiciden boşluklu */
    margin-top: 15px;
    /* KALDIRILDI: border-top-left-radius: 0; */
    /* KALDIRILDI: border-top-right-radius: 0; */

    transition: all 0.3s ease;
    /* 'all' olarak değiştirdik */
    resize: vertical;
    min-height: 200px;
}

/* YENİ KURAL: Konu seçildiğinde textarea'yı üstteki kutuya yapıştır */
#iaw-essay-text.iaw-topic-visible {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Textarea focus (Aynı kaldı) */
#iaw-essay-text:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* 1. Butonun Ana Stili (Öneri 5 için gereken eklemelerle) */
#iaw-submit-button {
    display: inline-block;
    background-color: #374151;
    /* Orijinal arka plan rengi */
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 15px;

    /* --- Öneri 5 için eklemeler --- */
    position: relative;
    /* Pseudo-elementi konumlandırmak için */
    overflow: hidden;
    /* Dolan katmanın dışarı taşmasını engellemek için */
    z-index: 1;
    /* Yazının katmanın üstünde kalması için */

    /* Arka plan yerine metin rengi geçişi (gerekirse) */
    transition: color 0.4s ease;
}

/* 2. Dolan Animasyon Katmanı (:before) */
#iaw-submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* Orijinal :hover renginiz animasyon rengi oldu */
    background-color: #1d4ed8;

    /* Başlangıçta gizli (soldan sağa dolacak) */
    transform: scaleX(0);
    transform-origin: left;

    /* Animasyonun hızı ve efekti */
    transition: transform 0.4s cubic-bezier(0.5, 0, 0.3, 1);

    /* Yazının arkasında kalması için */
    z-index: -1;
}

/* 3. Fare Üzerine Geldiğinde Animasyonu Tetikle */
/* BUTON :disabled OLMADIĞINDA çalışır */
#iaw-submit-button:not(:disabled):hover::before {
    transform: scaleX(1);
    /* Katmanın dolmasını sağla */
}

/* Orijinal :hover kuralınıza artık gerek yok, çünkü :before bunu devraldı */
/* #iaw-submit-button:hover { background-color: #1d4ed8; } */


/* 4. :disabled Durumu (Dokunulmadı, aynen korundu) */
/* Bu kural, :hover animasyonunu ezer ve buton devre dışıyken çalışır */
#iaw-submit-button:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* --- Sonuçların Gösterildiği Alan --- */
#iaw-results-container {
    border-top: 1px solid #e5e7eb;
    margin-top: 25px;
    padding-top: 20px;
}

.iaw-feedback-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.iaw-feedback-card ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.iaw-feedback-card ul li {
    margin-bottom: 8px;
    color: #4b5563;
}

.iaw-feedback-card .strength li::marker {
    color: #16a34a;
}

.iaw-feedback-card .weakness li::marker {
    color: #dc2626;
}

.iaw-feedback-card ul.weakness li {
    margin-bottom: 15px;
    list-style-type: none;
    padding-left: 5px;
}

.weakness-point {
    display: block;
    font-weight: 500;
    color: #4b5563;
    padding-bottom: 5px;
}

.example-fix {
    display: block;
    font-size: 0.9em;
    color: #166534;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 3px solid #22c55e;
    padding: 8px 12px;
    margin-top: 5px;
    border-radius: 4px;
}

.example-fix strong {
    color: #15803d;
}

.vocab-suggestions {
    list-style: none;
    padding-left: 5px !important;
}

.vocab-suggestions li {
    background-color: #f3f4f6;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 8px !important;
    border: 1px solid #e5e7eb;
    font-size: 0.95em;
}

/* --- Rapor Tablosu ve Detaylar --- */
.iaw-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.iaw-table th,
.iaw-table td {
    padding: 12px;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.iaw-table thead {
    background-color: #f3f4f6;
}

.iaw-table a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.iaw-table a:hover {
    text-decoration: underline;
}

.iaw-submission-detail a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.iaw-submission-detail .written-text {
    border: 1px solid #e5e7eb;
    padding: 15px;
    background: #ffffff;
    white-space: pre-wrap;
    line-height: 1.6;
    border-radius: 6px;
}

/* --- Zamanlayıcı ve Kelime Sayacı --- */
.iaw-editor-meta {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
}

.iaw-editor-meta span {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}


/* --- IELTS Speaking Practice --- */

#iaw-speaking-app #iaw-speaking-intro-screen {
    text-align: center;
}

#iaw-question-display,
#iaw-cue-card-display {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1.1em;
    line-height: 1.6;
    color: #111827;
}

#iaw-cue-card-display h5 {
    margin-bottom: 15px;
    font-size: 1.1em;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
}

.iaw-timer-display {
    text-align: right;
    font-weight: bold;
    color: #1d4ed8;
    margin-top: 15px;
    font-size: 1.1em;
}

#iaw-user-controls {
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    /* Yatayda tam ortalar */
    justify-content: center;
    width: 100%;
    margin-top: 30px;
    text-align: center;
}

/* OLD STYLES REMOVED - Now using iaw-frontend-views.css for .iaw-record-button */
/* The button should be circular (100x100px) with visualizer canvas behind it */


/* ===================================================================
 * Speaking Arayüzü Üst Bilgi Stilleri (GÜNCELLENDİ)
 * =================================================================== */

.iaw-examiner-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

/* Sol tarafı (logo ve dalga) gruplamak için yeni stil */
.iaw-examiner-left {
    display: flex;
    align-items: center;
    gap: 20px;
    /* Logo ve dalga arasındaki boşluk */
    flex-wrap: nowrap;
    /* Asla alt satıra kaydırma */
}

.iaw-examiner-logo {
    flex-shrink: 0;
    /* Logo'nun sıkışmasını engelle */
}

.iaw-examiner-logo img {
    display: block;
    /* Resim altındaki istenmeyen boşluğu kaldırır */
    max-height: 45px;
    width: auto;
    max-width: 150px;
}

#iaw-recording-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    font-weight: 500;
    flex-shrink: 0;
}

#iaw-recording-status .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

#iaw-recording-status.status-idle .dot {
    background-color: #9ca3af;
}

#iaw-recording-status.status-listening .dot {
    background-color: #3b82f6;
}

#iaw-recording-status.status-recording .dot {
    background-color: #ef4444;
}

#iaw-recording-status.status-processing .dot {
    background-color: #f97316;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

/* --- Liquid Orb AI Avatar --- */
.iaw-audio-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    position: relative;
}

.iaw-orb {
    /* Yeni Küre Tasarımı - %60 Küçültüldü (50px -> 20px) */
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #60a5fa, #2563eb);
    /* Reduced initial glow */
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
    /* Slow decay when returning to rest (2.5s) */
    transition: all 2.5s ease-out;
}

/* Resting State Animation (Softer Breathing) */
.iaw-orb {
    animation: orb-breathe 5s ease-in-out infinite;
}

@keyframes orb-breathe {

    0%,
    100% {
        transform: scale(0.98);
        box-shadow: 0 0 8px rgba(37, 99, 235, 0.3);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
    }
}

/* Active State (Speaking) - Liquid Morphing */
.iaw-audio-wave.active .iaw-orb {
    background: radial-gradient(circle at 30% 30%, #3b82f6, #1d4ed8);
    animation: orb-speaking 3s ease-in-out infinite;
    /* Slower, smoother morphing */
    /* Reduced active glow */
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.4);
    /* Fast activation (0.5s) */
    transition: all 0.5s ease-in;
}

@keyframes orb-speaking {
    0% {
        border-radius: 50%;
        transform: scale(1);
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
        transform: scale(1.05) rotate(-5deg);
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
        transform: scale(0.98) rotate(5deg);
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
        transform: scale(1.02) rotate(-3deg);
    }

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

/* Optional: Outer Glow Ring (Significantly reduced size) */
.iaw-audio-wave::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.05);
    /* Very subtle */
    z-index: 1;
    animation: ring-pulse 3s infinite;
    opacity: 0;
}

.iaw-audio-wave.active::after {
    opacity: 1;
}

@keyframes ring-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.2;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0;
    }
}

/* B) Dışarı Yayılan Dalga (Ripple) Animasyonu - KÜÇÜLTÜLDÜ */
@keyframes iaw-ai-ripple-expand {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.6;
    }

    100% {
        width: 180%;
        /* 250%'den 180%'e düşürüldü */
        height: 180%;
        opacity: 0;
        /* Genişleyip kaybolur */
    }
}

/* Efekt aktif olduğunda... */
.iaw-audio-wave.active span {
    background-color: #3b82f6;
    animation-name: iaw-audio-bounce;
    animation-duration: 1.2s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

/* Farklı gecikmelerle daha organik bir hareket */
.iaw-audio-wave.active span:nth-child(2) {
    animation-delay: -1.0s;
}

.iaw-audio-wave.active span:nth-child(3) {
    animation-delay: -0.8s;
}

.iaw-audio-wave.active span:nth-child(4) {
    animation-delay: -0.6s;
}

.iaw-audio-wave.active span:nth-child(5) {
    animation-delay: -0.4s;
}

/* Ses dalgasının zıplama animasyonu */
@keyframes iaw-audio-bounce {
    0% {
        transform: scaleY(0.3);
    }

    25% {
        transform: scaleY(1.0);
    }

    50% {
        transform: scaleY(0.4);
    }

    75% {
        transform: scaleY(0.7);
    }

    100% {
        transform: scaleY(0.3);
    }
}

/* ===================================================================
 * Genel İstatistik Paneli Stilleri
 * =================================================================== */
.iaw-stats-filters {
    margin-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.iaw-stats-filter-btn {
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    color: #374151;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.iaw-stats-filter-btn:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.iaw-stats-filter-btn.active {
    background-color: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.iaw-loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    padding: 20px;
}

.iaw-loader {
    border: 5px solid #f3f4f6;
    border-radius: 50%;
    border-top: 5px solid #2563eb;
    width: 50px;
    height: 50px;
    animation: iaw-spin 1s linear infinite;
}

@keyframes iaw-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.iaw-recent-activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.iaw-recent-activity-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    border-bottom: 1px solid #e5e7eb;
}

.iaw-recent-activity-list li:last-child {
    border-bottom: none;
}

.iaw-recent-activity-list .activity-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
}

.iaw-recent-activity-list .activity-date {
    font-size: 0.9em;
    color: #6b7280;
}

.iaw-recent-activity-list .activity-content {
    color: #4b5563;
    font-style: italic;
}

.iaw-recent-activity-list .activity-score {
    font-weight: 700;
    font-size: 1.1em;
    color: #111827;
    margin-left: 15px;
}

.iaw-type-label {
    font-size: 0.75em;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: inline-block;
}

.iaw-type-label.writing {
    background-color: #0ea5e9;
}

.iaw-type-label.speaking {
    background-color: #16a34a;
}

.iaw-type-label.speaking-tb {
    background-color: #8b5cf6;
}

#iaw-speaking-app #iaw-speaking-intro-screen,
#iaw-speaking-app #iaw-speaking-pre-test-screen {
    text-align: center;
}

/* Force flex centering on setup screen whenever it's visible */
#iaw-speaking-pre-test-screen[style*="display: block"],
#iaw-speaking-pre-test-screen[style*="display:block"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* --- Dashboard Geri Bildirim Kartları --- */
.iaw-feedback-summary-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.iaw-feedback-summary-card h3 {
    border-bottom: none;
    margin-bottom: 15px;
    font-size: 1.5em;
    margin-top: 0;
}

.iaw-feedback-summary-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.iaw-feedback-summary-card li {
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-weight: 500;
}

.iaw-feedback-summary-card li:last-child {
    margin-bottom: 0;
}

/* Güçlü Yönler Kartı Renkleri */
.iaw-feedback-summary-card.strengths {
    border-left: 4px solid #22c55e;
}

.iaw-feedback-summary-card.strengths h3 {
    color: #166534;
}

.iaw-feedback-summary-card.strengths li {
    background-color: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* Zayıf Yönler Kartı Renkleri */
.iaw-feedback-summary-card.weaknesses {
    border-left: 4px solid #ef4444;
}

/* --- Yeni Rapor Ekranı Tasarımı (Güncellendi) --- */
.iaw-report-container {
    font-family: -apple-system, BlinkMacSystem-Font, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.iaw-report-header {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.iaw-overall-score-display {
    line-height: 1.2;
}

.iaw-overall-score-display .score {
    font-size: 3.5em;
    font-weight: 800;
    color: #1d2327;
}

.iaw-overall-score-display .score span {
    font-weight: 300;
    color: #6b7280;
}

.iaw-overall-score-display .label {
    font-size: 1em;
    color: #6b7280;
    margin-top: 4px;
}

.iaw-criteria-breakdown h4 {
    font-size: 1.5em;
    color: #111827;
    margin-bottom: 20px;
    border-bottom: none;
}

/* DEĞİŞİKLİK: Tıklama efekti ve cursor kaldırıldı */
.iaw-criterion-row {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}

.iaw-criterion-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.iaw-criterion-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iaw-criterion-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.iaw-criterion-icon.coherence {
    background-color: #3b82f6;
}

.iaw-criterion-icon.lexical_resource {
    background-color: #f97316;
}

.iaw-criterion-icon.grammatical_range {
    background-color: #ef4444;
}

.iaw-criterion-info {
    flex-grow: 1;
}

.iaw-criterion-info .title {
    font-weight: 600;
    color: #111827;
}

.iaw-criterion-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.iaw-criterion-progress .score {
    font-weight: 700;
    font-size: 1.1em;
    color: #1d2327;
}

.iaw-progress-bar {
    flex-grow: 1;
    height: 8px;
    background-color: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.iaw-progress-bar-inner {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease-in-out;
}

/* DEĞİŞİKLİK: Detaylar artık her zaman görünür */
.iaw-criterion-details {
    display: block;
    /* display:none kaldırıldı */
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
    color: #4b5563;
    line-height: 1.6;
}

/* --- Language Toggle Switch --- */
.iaw-language-toggle-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 15px;
}

.iaw-language-toggle-wrapper label.toggle-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.iaw-language-toggle {
    display: inline-flex;
    background-color: #e5e7eb;
    border-radius: 9999px;
    padding: 4px;
    position: relative;
    border: 1px solid #d1d5db;
}

.iaw-language-toggle input[type="radio"] {
    /* Gerçek radio butonları saklıyoruz */
    display: none;
}

.iaw-language-toggle label.toggle-option {
    padding: 6px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s ease-in-out;
    user-select: none;
}

.iaw-language-toggle .toggle-highlight {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    /* Etiketin genişliğine göre ayarlanır */
    height: calc(100% - 8px);
    background-color: white;
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

/* Seçili duruma göre arkaplanı ve metin rengini ayarla */
.iaw-language-toggle input[type="radio"]:checked+label.toggle-option {
    color: #ffffff;
}

.iaw-language-toggle input#lang-en-writing:checked~.toggle-highlight {
    transform: translateX(0%);
    background-color: #2563eb;
    /* Mavi */
}

.iaw-language-toggle input#lang-tr-writing:checked~.toggle-highlight {
    transform: translateX(100%);
    background-color: #dc2626;
    /* Kırmızı */
}

/* --- Language Toggle Switch (Speaking Page Colors) --- */
.iaw-language-toggle input#lang-en-speaking:checked~.toggle-highlight {
    transform: translateX(0%);
    background-color: #2563eb;
    /* Mavi */
}

.iaw-language-toggle input#lang-tr-speaking:checked~.toggle-highlight {
    transform: translateX(100%);
    background-color: #dc2626;
    /* Kırmızı */
}

/* ============================================= */
/* PDF Export Styles                             */
/* ============================================= */

/* Bu sınıf JS tarafından anlık eklenip kaldırılacak */
body.pdf-generating #wpadminbar,
body.pdf-generating header,
body.pdf-generating .website-header,
/* Temanızın header class'ı farklıysa burayı güncelleyin */
body.pdf-generating footer,
body.pdf-generating #secondary,
/* Temanızın sidebar class'ı */
body.pdf-generating .iaw-report-header button

/* PDF indir butonunu PDF'in içinde gizle */
    {
    display: none !important;
}

body.pdf-generating .iaw-report-container {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}


/* ============================================= */
/* Print Report Styles                           */
/* ============================================= */
@media print {

    /* Sayfadaki tüm gereksiz elementleri gizle */
    body * {
        visibility: hidden;
    }

    /* Sadece rapor ve içindekiler görünsün */
    .iaw-report-container,
    .iaw-report-container * {
        visibility: visible;
    }

    /* Raporu sayfanın en üstüne yerleştir */
    .iaw-report-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        border: none !important;
        box-shadow: none !important;
    }

    /* Yazdırma sırasında butonu gizle */
    #iaw-print-btn {
        display: none;
    }

    /* Daha iyi okunabilirlik için font boyutunu ayarla */
    body {
        font-size: 12pt;
    }

    /* Sayfa sonu kesmelerini daha akıllı hale getir */
    .iaw-criterion-row,
    .iaw-feedback-card {
        page-break-inside: avoid;
    }

    /* Linklerin URL'lerini gösterme */
    a,
    a:visited {
        text-decoration: none;
    }
}

/* --- Yenilenmiş User Dashboard Stilleri --- */

/* Kartları yan yana veya alt alta dizmek için */
.iaw-stat-cards.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    /* Daha esnek kart genişliği */
    gap: 20px;
    margin-bottom: 30px;
}

/* Streak ve Hedef kartları için özel stiller */
.iaw-stat-card.streak .stat-value {
    color: #f97316;
}

/* Turuncu */
.iaw-stat-card.goal {
    text-align: center;
}

/* Hedef Puan Formu */
#iaw-target-score-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #6b7280;
}

#iaw-target-score-input {
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    width: 80px;
    /* Küçük input alanı */
    text-align: center;
    font-size: 1.1em;
    margin-right: 5px;
}

#iaw-save-goal-btn {
    padding: 8px 15px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

#iaw-save-goal-btn:disabled {
    background-color: #9ca3af;
}

#iaw-goal-status {
    display: block;
    margin-top: 5px;
    font-size: 0.8em;
    min-height: 1.2em;
}

.iaw-edit-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 5px;
    font-size: 0.8em;
}

/* Mini Grafik Alanı */
.iaw-mini-chart-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.iaw-mini-chart-container h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3em;
    color: #374151;
    border-bottom: none;
    /* Genel h3 stilini ezelim */
    padding-bottom: 0;
}

.iaw-chart-canvas-wrapper {
    height: 250px;
    /* Grafik yüksekliği */
    position: relative;
}

.iaw-chart-placeholder {
    color: #6b7280;
    text-align: center;
    padding: 30px 0;
}

/* Son Aktiviteler */
.iaw-recent-activity-container {
    margin-bottom: 30px;
}

.iaw-recent-activity-container h3 {
    margin-bottom: 15px;
    font-size: 1.3em;
    color: #374151;
    border-bottom: none;
    padding-bottom: 0;
}

.iaw-recent-activity-list.dashboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.iaw-recent-activity-list.dashboard-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f1f5f9;
    gap: 15px;
    /* Elemanlar arası boşluk */
}

.iaw-recent-activity-list.dashboard-list li:last-child {
    border-bottom: none;
}

.iaw-recent-activity-list.dashboard-list .activity-info {
    display: flex;
    align-items: center;
    /* Yan yana hizala */
    gap: 10px;
    flex-grow: 1;
    /* Ortadaki boşluğu doldur */
}

.iaw-type-label {
    /* Zaten var ama tekrar tanımlayalım */
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.2;
}

.iaw-type-label.writing {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.iaw-type-label.speaking {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.iaw-type-label.speaking-tb {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.activity-date {
    font-size: 0.9em;
    color: #6b7280;
    white-space: nowrap;
}

/* Tarihin bölünmesini engelle */
.activity-score {
    font-size: 1.1em;
    font-weight: bold;
    color: #111827;
}

.iaw-view-details-link {
    font-size: 0.9em;
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
    white-space: nowrap;
}

.iaw-view-details-link:hover {
    text-decoration: underline;
}

/* Ana Eylem Butonları */
.iaw-dashboard-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    /* Mobil için */
}

.iaw-action-button.secondary {
    /* İkincil buton için stil (opsiyonel) */
    background: #e5e7eb;
    /* Gri arka plan */
    color: #374151;
    /* Koyu gri yazı */
}

.iaw-action-button.secondary::before {
    /* Animasyonlu arka planı farklı yap */
    background-color: #d1d5db;
}

/* Mobil uyumluluk */
@media (max-width: 600px) {
    .iaw-stat-cards.dashboard-cards {
        grid-template-columns: 1fr;
        /* Mobilde tek sütun */
    }

    .iaw-recent-activity-list.dashboard-list li {
        flex-wrap: wrap;
        /* Sığmazsa alt satıra kaydır */
        padding: 12px 15px;
    }

    .iaw-recent-activity-list.dashboard-list .activity-info {
        flex-basis: 100%;
        /* Bilgi kısmı tam genişlik */
        margin-bottom: 5px;
        order: 1;
        /* Önce göster */
    }

    .activity-score {
        order: 2;
        margin-left: auto;
    }

    /* Puan sağda */
    .iaw-view-details-link {
        order: 3;
        margin-left: 15px;
    }

    /* Link en sağda */

    .iaw-dashboard-actions {
        flex-direction: column;
        /* Butonları alt alta diz */
    }

    .iaw-action-button {
        width: 100%;
        /* Tam genişlik butonlar */
        text-align: center;
    }
}

/* Speaking Pratiği - Giriş Ekranı Kartları (Süre Hizalı) */
.iaw-speaking-parts-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    /* Başlık/logo ile buton arasına boşluk */
    border: 1px solid #e5e7eb;
    /* Kartları gruplayan dış çerçeve */
    border-radius: 8px;
    overflow: hidden;
    /* Köşeleri düzgün göstermek için */
    background-color: #ffffff;
    /* Arka planı beyaz yap */
}

.iaw-part-item {
    display: flex;
    align-items: center;
    /* İkon ve metni dikeyde ortala */
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.iaw-part-item:last-child {
    border-bottom: none;
    /* Son elemanda çizgi olmasın */
}

/* İkon Stilleri */
.iaw-part-icon {
    flex-shrink: 0;
    /* İkonun büzüşmesini engelle */
    width: 48px;
    height: 48px;
    border-radius: 50%;
    /* Daire ikon */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    /* İkonla metin arası boşluk */
}

.iaw-part-icon svg {
    width: 24px;
    height: 24px;
}

/* Metin Stilleri (Sol Taraf) */
.iaw-part-info {
    display: flex;
    flex-direction: column;
    /* Başlık ve açıklamayı alt alta diz */
    flex-grow: 1;
    /* YENİ: Bu, süreyi sağa itmek için tüm boşluğu doldurur */
}

.iaw-part-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #111827;
    /* Koyu metin rengi */
}

.iaw-part-description {
    font-size: 0.9em;
    color: #4b5563;
    /* Açık metin rengi */
    margin-top: 2px;
}

/* Süre Stilleri (Sağ Taraf) - YENİ KURAL */
.iaw-part-time {
    position: relative;
    /* İçindeki dalgalar için gerekli */
    margin-left: 0;
    /* Logo ile mesafe - ARTIK GEREK YOK */
    font-size: 0.9em;
    font-weight: 500;
    color: #374151;
    /* Hafif koyu renk */
    background-color: #f3f4f6;
    /* Hafif gri arka plan */
    padding: 4px 10px;
    border-radius: 6px;
}

/* assets/css/style.css dosyanıza ekleyin */
/* Ana uygulama kapsayıcısı (Bunun position: relative olması şart) */
.iaw-container {
    position: relative;
    margin: 0 auto;
    /* margin-left: 300px; REMOVED to fix layout */
    max-width: 1400px;
    /* ... (mevcut diğer stilleriniz, örn: max-width, margin) ... */
}

/* =================================== */
/* === LOTTIE YÜKLEME EKRANI STİLİ === */
/* =================================== */
/* GÜNCELLENDİ: Arkaplana blur (bulanıklık) eklendi */

.iaw-loading-overlay {
    /* Varsayılan olarak gizli */
    display: none;

    /* DEĞİŞİKLİK: Absolute yerine Relative yapıyoruz */
    /* Böylece içerik gizlendiğinde kutu çökmez, bu alan kutuyu doldurur */
    position: relative;
    width: 100%;
    height: auto;
    min-height: 450px;
    /* Kutunun büzüşmesini engelleyen garanti yükseklik */

    background-color: transparent;
    /* Arka plan şeffaf olabilir çünkü zaten beyaz kutudayız */
    z-index: 100;

    /* İçeriği tam ortala */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    /* Köşeleri ana kutuya uydur */
    border-radius: 24px;
}

#iaw-lottie-animation {
    width: 180px;
    height: 180px;
    margin-bottom: 30px;
}

/* Ana yükleme metni stili */
.iaw-loading-main-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a202c;
    /* Koyu gri/siyah */
    margin-top: 10px;
    margin-bottom: 10px;
    font-family: 'Segoe UI', sans-serif;
}

/* Alt yükleme metni stili */
.iaw-loading-sub-text {
    font-size: 1rem;
    color: #64748b;
    /* Daha yumuşak gri */
    margin: 0;
    max-width: 80%;
    line-height: 1.5;
}

/* --- Tarayıcı Uyumluluk Uyarısı --- */
.iaw-browser-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.95em;
    line-height: 1.5;
}

.iaw-browser-warning svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #856404;
}

.iaw-browser-warning strong {
    display: block;
    margin-bottom: 2px;
    color: #533f03;
}

/* Firefox veya Desteklenmeyen Tarayıcıda Butonu Pasife Al (Opsiyonel) */
.iaw-browser-blocked #iaw-start-practice-btn {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* --- Limit Uyarısı Kartı Tasarımı --- */
.iaw-limit-warning-card {
    text-align: center;
    padding: 30px 20px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.iaw-limit-icon {
    font-size: 40px;
    margin-bottom: 15px;
    display: inline-block;
}

.iaw-limit-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px 0;
}

.iaw-limit-message {
    color: #4b5563;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.iaw-upgrade-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: #f59e0b;
    /* Premium hissi için Altın/Turuncu renk */
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.iaw-upgrade-btn:hover {
    background-color: #d97706;
    color: #fff;
}

.iaw-upgrade-btn svg {
    margin-right: 8px;
    width: 20px;
    height: 20px;
}

/* --- Yükleme Ekranı Animasyonlu Metin --- */
.iaw-loading-main-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1d4ed8;
    margin-top: 15px;
    margin-bottom: 8px;
    min-height: 1.5em;
    /* Metin değişirken zıplamayı önler */
    transition: opacity 0.3s ease-in-out;
}

.iaw-loading-sub-text {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

.iaw-chart-toggle-container {
    display: flex;
    justify-content: flex-end;
    /* Sağa yasla */
    margin-bottom: 15px;
}

.iaw-chart-toggle {
    background-color: #f1f5f9;
    /* Açık gri arka plan */
    padding: 4px;
    border-radius: 8px;
    display: inline-flex;
    gap: 5px;
    border: 1px solid #e2e8f0;
}

.iaw-chart-toggle-btn {
    border: none;
    background: transparent;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    color: #64748b;
    /* Pasif yazı rengi */
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    outline: none;
}

.iaw-chart-toggle-btn:hover {
    color: #334155;
    background-color: rgba(255, 255, 255, 0.5);
}

.iaw-chart-toggle-btn.active {
    background-color: #ffffff;
    /* Aktif buton beyaz */
    color: #2563eb;
    /* Aktif yazı mavi */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    /* Hafif gölge */
}

.iaw-chart-toggle-btn svg {
    width: 16px;
    height: 16px;
}

/* --- Grafik Alanı Yüksekliği (Çok Önemli) --- */
.iaw-chart-container {
    position: relative;
    width: 100%;
    height: 400px !important;
    /* Grafiği zorla aç */
    min-height: 350px;
    margin-bottom: 30px;
}

/* Mobilde yükseklik ayarı */
@media (max-width: 768px) {
    .iaw-chart-container {
        height: 300px !important;
    }

    .iaw-chart-toggle-container {
        justify-content: center;
        /* Mobilde butonları ortala */
    }
}

/* --- Radar Grafiği (Rapor Ekranı) --- */
.iaw-radar-chart-wrapper {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
    margin-bottom: 35px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.iaw-radar-chart-wrapper h4 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #475569;
    font-weight: 600;
}

.iaw-radar-canvas {
    max-height: 400px;
    width: 100%;
}

/* --- Konu Seçim Modalı Filtreleme --- */
.iaw-modal-header-wrapper {
    background-color: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 24px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.iaw-modal-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.iaw-modal-header-top h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    border: none;
}

.iaw-topic-toolbar {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

/* Filtre Butonları (Pill Shape) */
.iaw-filter-group {
    display: flex;
    gap: 8px;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 8px;
}

.iaw-filter-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.iaw-filter-btn:hover {
    color: #1f2937;
    background: rgba(255, 255, 255, 0.5);
}

.iaw-filter-btn.active {
    background: #fff;
    color: #2563eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Arama Kutusu */
.iaw-search-wrapper {
    position: relative;
    flex-grow: 1;
}

.iaw-search-wrapper input {
    width: 100%;
    padding: 8px 10px 8px 36px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.iaw-search-wrapper input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.iaw-search-wrapper .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9ca3af;
}

/* Modal Body Düzenlemesi */
.iaw-modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: 60vh;
    /* Yükseklik sınırla */
}

/* Mobilde alt alta geçsin */
@media (max-width: 600px) {
    .iaw-topic-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .iaw-filter-group {
        justify-content: center;
    }
}

/* =============================================
 * Speaking Kayıt Butonu - Pulse (Nabız) Efekti
 * ============================================= */

/* 1. Nabız Animasyonu Tanımı (Kırmızı Halka) */
@keyframes iaw-pulse-ring {
    0% {
        /* Başlangıç: Butonun tam kenarında, opak kırmızı */
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        /* Genişleme: Dışarı doğru 15px yayıl ve şeffaflaş */
        box-shadow: 0 0 0 15px rgba(239, 68, 68, 0);
    }

    100% {
        /* Bitiş: Tamamen görünmez */
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* 2. Kayıt Modunda Buton Stili (.recording sınıfı JS ile eklenir) */
.iaw-record-button.recording {
    background-color: #ef4444 !important;
    /* Daha canlı bir kırmızı */
    color: #ffffff;
    border-color: #ef4444;

    /* Animasyonu Tetikle: 1.5 saniyede bir sonsuz döngü */
    animation: iaw-pulse-ring 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;

    /* Geçiş efektleri */
    transition: all 0.3s ease;
}

/* Opsiyonel: Kayıt sırasında içindeki ikonun da hafifçe oynaması */
.iaw-record-button.recording svg {
    animation: iaw-pulse-icon 1.5s ease-in-out infinite;
}

@keyframes iaw-pulse-icon {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    /* İkon hafif büyür */
    100% {
        transform: scale(1);
    }
}

/* =============================================
 * IAW Speaking Modülü - Modern UI Revizyonu v2.0
 * MOVED TO: assets/css/speaking.css
 * ============================================= */

/* ===================================================================
 * MODERN WRITING FORM STYLES (Glassmorphism UI)
 * Based on IELTSWritingUI.jsx Reference
 * =================================================================== */

/* Main Container - Light Background matching reference */
.iaw-container {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 30px !important;
    min-height: 600px;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin-left: 300px !important;
}

@media (min-width: 993px) {
    .iaw-container {
        margin-left: 350px !important;
    }
}

@media (max-width: 992px) {
    .iaw-container {
        margin-left: 0 !important;
    }
}

/* Stats Header elements for writing form & other shortcodes */
.iaw-gs-header {
    margin-bottom: 30px;
    text-align: left !important;
}

.iaw-gs-welcome {
    font-size: 14px;
    color: var(--iaw-text-secondary, #a3aed0);
    font-weight: 500;
    text-align: left !important;
}

.iaw-gs-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--monsfer-ink, #0f172a);
    margin: 0;
    line-height: 1.2;
    text-align: left !important;
}

/* Pseudo-elements for ambient background blobs could go here, but omitted to prevent theme conflicts */

/* Modern Page Title */
.iaw-page-header {
    text-align: center;
    margin-bottom: 30px;
}

.iaw-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.iaw-page-subtitle {
    color: #64748b;
    font-weight: 500;
    font-size: 15px;
}

/* Topic Selector - Glassmorphism Card Style */
.iaw-topic-selector-wrapper {
    margin-bottom: 25px;
}

.iaw-topic-select-trigger {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 16px !important;
    padding: 16px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    cursor: pointer;
}

.iaw-topic-select-trigger:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

.iaw-topic-trigger-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.iaw-topic-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #94a3b8;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.iaw-topic-select-trigger.active .iaw-topic-icon {
    background: #eef2ff;
    color: #4f46e5;
}

.iaw-topic-trigger-info {
    display: flex;
    flex-direction: column;
}

.iaw-topic-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 4px;
}

.iaw-topic-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.iaw-topic-placeholder {
    font-size: 16px;
    font-weight: 500;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.iaw-topic-select-trigger:hover .iaw-topic-placeholder {
    color: #3b82f6;
}

.iaw-topic-trigger-text {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

#iaw-selected-task-badge {
    padding: 2px 8px;
    border-radius: 6px;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 12px;
    font-weight: 700;
}

.iaw-topic-trigger-right {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.iaw-topic-select-trigger:hover .iaw-topic-trigger-right {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}


/* Editor Area (Glassmorphism Card) */
.iaw-editor-container {
    position: relative;
    background: #ffffff;
    border-radius: 32px;
    border: 0px solid transparent !important;
    outline: none !important;
    box-shadow: 0 20px 25px -5px rgba(226, 232, 240, 0.5), 0 8px 10px -6px rgba(226, 232, 240, 0.5);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.iaw-editor-container.focus {
    border-color: rgba(147, 197, 253, 0.8);
    box-shadow: 0 25px 30px -5px rgba(219, 234, 254, 0.6), 0 0 20px 0 rgba(191, 219, 254, 0.4);
}

.iaw-editor-container.disabled {
    opacity: 0.6;
    pointer-events: none;
    filter: grayscale(30%);
}

.iaw-editor-placeholder-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.iaw-editor-container:not(.disabled) .iaw-editor-placeholder-overlay {
    opacity: 0;
    pointer-events: none;
}

.iaw-editor-placeholder-overlay p {
    color: #64748b;
    font-weight: 500;
}

/* Fullscreen Mode Overrides */
body.iaw-body-no-scroll {
    overflow: hidden !important;
}

.iaw-editor-container.iaw-editor-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    z-index: 999999 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: #F5FAFF !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    display: flex !important;
    flex-direction: column !important;
}

.iaw-editor-container.iaw-editor-fullscreen .iaw-textarea-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    padding: 0 32px 32px 32px;
}

.iaw-editor-container.iaw-editor-fullscreen .iaw-editor-sidebar {
    width: 40%;
    min-width: 300px;
    max-width: 600px;
    border-right: 1px solid #e2e8f0;
    padding-right: 32px;
    margin-right: 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.iaw-editor-container.iaw-editor-fullscreen .iaw-editor-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.iaw-editor-container.iaw-editor-fullscreen #iaw-essay-text {
    flex-grow: 1;
    font-size: 18px;
    /* Slightly larger text in fullscreen */
    line-height: 1.8;
}

/* Editor Header (Meta bar) */
.iaw-editor-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: transparent;
    flex-shrink: 0;
}

/* Fullscreen Toggle Button */
.iaw-fullscreen-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.iaw-fullscreen-btn:hover {
    background: #f1f5f9;
    color: #334155;
}

.iaw-editor-fullscreen .iaw-fullscreen-btn {
    background: #e2e8f0;
    color: #0f172a;
}

.iaw-editor-fullscreen .iaw-fullscreen-btn:hover {
    background: #cbd5e1;
}

.iaw-timer-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-weight: 500;
    font-size: 14px;
}

.iaw-timer-wrapper.active {
    color: #3b82f6;
}

.iaw-timer-text {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-weight: 700;
    color: #334155;
}

.iaw-word-count-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.iaw-word-progress-bar-bg {
    width: 128px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}

.iaw-word-progress-bar-fill {
    height: 100%;
    background: #3b82f6;
    border-radius: 9999px;
    transition: width 0.5s ease-out, background-color 0.3s;
}

.iaw-word-progress-bar-fill.success {
    background: #10b981;
    /* Emerald */
}

.iaw-word-count-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

.iaw-word-count-wrapper svg {
    color: #94a3b8;
}

.iaw-word-count-wrapper.success svg {
    color: #10b981;
}

#iaw-word-count-current {
    color: #475569;
}

.iaw-word-count-wrapper.success #iaw-word-count-current {
    color: #059669;
    font-weight: 700;
}

/* Textarea */
.iaw-textarea-wrapper {
    padding: 32px;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.iaw-editor-sidebar,
.iaw-editor-main {
    display: flex;
    flex-direction: column;
}

.iaw-editor-main {
    flex-grow: 1;
}

#iaw-task1-image-container img {
    max-width: 600px;
    max-height: 350px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#iaw-essay-text {
    flex: 1;
    width: 100%;
    min-height: 350px;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    color: #334155;
    font-size: 18px;
    line-height: 1.8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding: 0;
    margin: 0;
    box-shadow: none !important;
}

#iaw-essay-text::placeholder {
    color: #cbd5e1;
}

/* Footer Actions */
.iaw-footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 32px 32px 32px;
    transition: opacity 0.3s ease;
}

.iaw-footer-actions.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Language Toggle - Modern Version */
.iaw-language-toggle-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.iaw-language-toggle-wrapper .toggle-label {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-left: 8px;
}

.iaw-language-toggle.modern-pill {
    background: #ffffff;
    padding: 4px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    position: relative;
    width: 240px;

}

.iaw-language-toggle.modern-pill .toggle-option {
    flex: 1;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    background: transparent !important;
    border: none !important;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 10;
    transition: color 0.3s;
    cursor: pointer;
}

.iaw-language-toggle.modern-pill .toggle-option:hover {
    color: #334155;
}

.iaw-language-toggle.modern-pill .toggle-option.active {
    color: #2563eb;
}

/* Base highlight div */
.iaw-language-toggle.modern-pill .toggle-highlight {
    position: absolute;
    top: 4px;
    bottom: 4px;
    width: calc(50% - 4px);
    background: #eff6ff;
    border-radius: 12px;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.iaw-language-toggle.modern-pill[data-selected="English"] .toggle-highlight {
    left: 4px;
}

.iaw-language-toggle.modern-pill[data-selected="Turkish"] .toggle-highlight {
    left: calc(50% + 2px);
}

/* Submit Button */
.iaw-submit-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

#iaw-submit-button.iaw-submit-btn-modern {
    position: relative;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 16px 40px !important;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.025em;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 15px -3px rgba(148, 163, 184, 0.4);
    margin: 0 !important;
    /* Override legacy margins */
}

.iaw-submit-btn-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #374151, #1c2027);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.iaw-submit-btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(191, 219, 254, 0.5), 0 8px 10px -6px rgba(191, 219, 254, 0.5);
}

.iaw-submit-btn-modern:active {
    transform: translateY(0);
}

.iaw-submit-btn-modern:hover::before {
    opacity: 1;
}

.iaw-submit-btn-modern .iaw-btn-text {
    position: relative;
    z-index: 2;
}

.iaw-submit-btn-modern .iaw-btn-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s;
}

.iaw-submit-btn-modern .iaw-btn-icon svg {
    width: 60%;
    height: 60%;
    display: block;
}

.iaw-submit-btn-modern:hover .iaw-btn-icon {
    background: #ffffff;
    color: #4f46e5;
}

@media (max-width: 768px) {
    .iaw-footer-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .iaw-language-toggle.modern-pill {
        width: 100%;
    }

    .hidden-mobile {
        display: none !important;
    }

    .iaw-editor-meta {
        padding: 12px 16px;
    }

    .iaw-textarea-wrapper {
        padding: 16px;
    }
}

/* ===================================================================
 * ERROR CARD STYLES
 * Beautiful user-friendly error display
 * =================================================================== */

.iaw-error-card {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
    border: 1px solid #fecaca;
    border-radius: 20px;
    max-width: 500px;
    margin: 40px auto;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.1);
}

.iaw-error-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
}

.iaw-error-title {
    font-size: 24px;
    font-weight: 700;
    color: #b91c1c;
    margin: 0 0 15px 0;
    font-family: 'Outfit', 'DM Sans', sans-serif;
}

.iaw-error-description {
    font-size: 16px;
    color: #7f1d1d;
    line-height: 1.7;
    margin: 0 0 30px 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.iaw-error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.iaw-error-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.iaw-error-btn-secondary {
    background: #ffffff;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.iaw-error-btn-secondary:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.iaw-error-btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.iaw-error-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

/* Mobile responsive */
@media (max-width: 480px) {
    .iaw-error-card {
        padding: 35px 20px;
        margin: 20px 10px;
    }

    .iaw-error-icon {
        font-size: 48px;
    }

    .iaw-error-title {
        font-size: 20px;
    }

    .iaw-error-description {
        font-size: 14px;
    }

    .iaw-error-actions {
        flex-direction: column;
    }

    .iaw-error-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===================================================================
 * MODERN MODAL & TOPIC CARDS STYLES
 * Matches the React Dashboard Aesthetics
 * =================================================================== */

/* Modal Content Restyling */
#iaw-topic-modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 900px;
}

/* Modal Header */
.iaw-modal-header-wrapper {
    background: transparent;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 24px 32px;
    border-radius: 32px 32px 0 0;
}

.iaw-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.iaw-modal-title svg {
    color: #3b82f6;
}

.iaw-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.iaw-modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: rotate(90deg);
}

.iaw-topic-toolbar {
    margin-top: 20px;
}

#iaw-topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 24px 32px;
}

/* Topic Card */
.iaw-topic-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 180px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.iaw-topic-card:hover:not(.disabled) {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
    background: #ffffff !important;
}

.iaw-topic-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.iaw-topic-card-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #4f46e5;
    background: #e0e7ff;
    padding: 4px 10px;
    border-radius: 12px;
}

.iaw-topic-card-score {
    display: flex;
    align-items: center;
    background: #10b981;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.iaw-topic-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.iaw-topic-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.iaw-topic-card-type {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.iaw-topic-card-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.3s;
}

.iaw-topic-card:hover:not(.disabled) .iaw-topic-card-arrow {
    background: #eff6ff;
    color: #3b82f6;
    transform: translateX(4px);
}

.iaw-topic-card.disabled {
    opacity: 0.6;
    background: #f8fafc;
    cursor: not-allowed;
    border-style: dashed;
}