/* Zengin Metin Editörü Stilleri */
.tox-tinymce {
    border-radius: 0.5rem !important;
    border-color: #e5e7eb !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.tox .tox-toolbar {
    background: none !important;
}

.tox .tox-tbtn {
    border-radius: 0.375rem !important;
    transition: all 0.2s !important;
}

.tox .tox-tbtn:hover {
    background: #f3f4f6 !important;
}

.tox .tox-tbtn--enabled {
    background: #e5e7eb !important;
}

/* Feed Kartları */
.feed-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 1rem;
    transition: box-shadow 0.3s, transform 0.3s;
    content-visibility: auto;
    contain-intrinsic-size: auto 400px;
    contain: layout style paint;
}

.feed-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .feed-card {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        transition: none;
    }
    .feed-card:hover {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        transform: none;
    }
}

/* Hidden feed cards: completely skip rendering */
.feed-card-hidden {
    content-visibility: hidden;
    contain-intrinsic-size: 0;
}

/* Quote Card */


.quote-card {
    position: relative;
    padding: 1.75rem 2.25rem 1.75rem 2.65rem;
    border-radius: 1.5rem;
    border: 1px solid #e6e9ef;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    scroll-margin-top: 140px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    content-visibility: auto;
    contain-intrinsic-size: auto 300px;
    contain: layout style paint;
}

@media (max-width: 768px) {
    .quote-card {
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
        transition: none;
    }
}

.quote-card::before {
    content: '';
    position: absolute;
    top: 1rem;
    bottom: 1rem;
    left: 0;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #16a34a 0%, #22c55e 100%);
}

.quote-card__icon {
    display: none;
}

.quote-card__text {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.9;
    font-style: italic;
    color: #1f2a3c;
    font-weight: 400;
    font-family: 'Georgia', 'Times New Roman', serif;
    text-align: left;
}

.quote-card__meta {
    margin-top: 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #047857;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.quote-card__meta i {
    color: #0f9f71;
}

@media (max-width: 640px) {
        .quote-card {
            padding: 1.4rem 1.55rem 1.4rem 2.2rem;
        }

        .quote-card::before {
            left: 0;
            top: 0.75rem;
            bottom: 0.75rem;
        }

        .quote-card__text {
            font-size: 0.98rem;
        }
}

/* Book Preview Card */
.book-preview {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.book-cover {
    width: 80px;
    height: 120px;
    object-fit: cover;
    object-position: top center;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.book-cover-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.book-cover-frame > img,
.book-cover-frame .book-cover-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

img[src*="/assets/uploads/covers/"],
img[src*="assets/uploads/covers/"],
img[src*="books.google"],
img[src*="googleusercontent.com"] {
    object-position: top center;
}

.book-cover-frame.is-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e7ff, #ecfeff);
}

.book-cover-placeholder {
    width: 100%;
    height: 100%;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
}

.book-cover-placeholder-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #c7d2fe;
    color: #312e81;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.book-cover-placeholder-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    line-height: 1.2;
    max-width: 12ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-card-grid {
    grid-auto-rows: 1fr;
    align-items: stretch;
}

.book-card {
    display: flex;
    height: 100%;
}

.book-card > .grid {
    flex: 1;
    min-height: 100%;
}

.book-card-content {
    min-height: 100%;
}

.book-card-description {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 767px) {
    /* Cover is now always in a fixed-width column — no forced full-width override */
    .books-page-list .book-cover-frame {
        border-radius: 0; /* card outer overflow-hidden handles rounding */
    }

    .books-page-list .book-card {
        border-radius: 1.1rem;
    }

    .books-page-list .book-card-content {
        gap: 0.75rem;
    }
}

@supports not (aspect-ratio: 2 / 3) {
    .book-cover-frame::before {
        content: "";
        display: block;
        padding-top: 150%;
    }

    .book-cover-frame > img,
    .book-cover-frame .book-cover-media,
    .book-cover-frame > .book-cover-content {
        position: absolute;
        inset: 0;
    }
}

.layout-shell {
    width: 100%;
}

.book-rating-control {
    display: inline-flex;
    gap: 0.15rem;
    align-items: center;
}

.book-rating-control button {
    width: 1.8rem;
    height: 1.8rem;
    border: none;
    border-radius: 9999px;
    background: transparent;
    color: #d1d5db;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

/* Messaging UI Enhancements */
.compose-submit-btn {
    margin: 0.5rem 0 0.25rem;
    background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 55%, #a855f7 100%);
    border: 1px solid rgba(76, 29, 149, 0.55);
    box-shadow: 0 20px 35px -18px rgba(76, 29, 149, 0.85);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 1.05rem;
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.compose-panel {
    padding-bottom: 3.5rem !important;
    margin-bottom: 1rem;
    overflow: visible;
}

.compose-panel form {
    overflow: visible;
}

.compose-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 25px 40px -20px rgba(64, 18, 125, 0.85);
}

.compose-submit-btn:focus-visible {
    outline: 3px solid rgba(168, 85, 247, 0.45);
    outline-offset: 3px;
}

.header-message-link {
    position: relative;
}

.header-message-link .message-indicator-badge {
    position: absolute;
    top: -0.15rem;
    right: -0.1rem;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.2rem;
    border-radius: 9999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #fff, 0 0 18px rgba(220, 38, 38, 0.65);
    animation: message-indicator-pulse 1.6s ease-in-out infinite;
}

.header-message-link.has-unread-messages i {
    color: #b91c1c;
    animation: message-icon-pulse 1.6s ease-in-out infinite;
}

@keyframes message-indicator-pulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 2px #fff, 0 0 6px rgba(220, 38, 38, 0.3); }
    50% { transform: scale(1); box-shadow: 0 0 0 2px #fff, 0 0 18px rgba(220, 38, 38, 0.7); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 2px #fff, 0 0 6px rgba(220, 38, 38, 0.3); }
}

@keyframes message-icon-pulse {
    0% { transform: translateY(0); }
    50% { transform: translateY(-1px); }
    100% { transform: translateY(0); }
}

.book-rating-control button:hover {
    color: #fcd34d;
    transform: translateY(-1px);
}

.book-rating-control button.is-hover {
    color: #fde68a;
}

.book-rating-control button.is-active {
    color: #fbbf24;
}

.book-rating-control.is-locked button {
    pointer-events: none;
    cursor: default;
    opacity: 0.8;
    transform: none !important;
}

[data-book-rating-root].is-locked button {
    pointer-events: none;
    cursor: default;
    opacity: 0.85;
}

.sort-pill {
    position: relative;
    display: inline-flex;
    cursor: pointer;
    text-decoration: none;
}

.sort-pill input[type="radio"] {
    position: absolute;
    opacity: 0;
    inset: 0;
    margin: 0;
}

.sort-pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #f8fafc;
    font-size: 0.95rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.sort-pill:hover span {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.12);
}

.sort-pill input[type="radio"]:checked + span {
    background: #ffffff;
    color: #4c1d95;
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
}

.sort-pill.is-active span {
    background: #ffffff;
    color: #4c1d95;
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
}

.sort-pill input[type="radio"]:focus-visible + span {
    outline: 2px solid #c4b5fd;
    outline-offset: 2px;
}

.sort-pill:focus-visible span {
    outline: 2px solid #c4b5fd;
    outline-offset: 2px;
}

.book-rating-control button:focus-visible {
    outline: 2px solid rgba(79, 70, 229, 0.35);
    outline-offset: 2px;
}

.book-rating-control.is-loading button {
    opacity: 0.5;
    pointer-events: none;
}

/* Action Buttons */
.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.action-btn:hover {
    transform: translateY(-1px);
}

.action-btn i {
    transition: transform 0.2s;
}

.action-btn:hover i {
    transform: scale(1.1);
}

/* Devamını Oku Butonları */

.btn-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    line-height: 1.25;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-readmore:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(79, 70, 229, 0.3);
}

.btn-readmore--purple {
    background: linear-gradient(120deg, #b26bff, #7c3aed);
}

.btn-readmore--purple:hover {
    background: linear-gradient(120deg, #a256ff, #6d28d9);
}

.btn-readmore--blue {
    background: linear-gradient(120deg, #5ba8ff, #2563eb);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

.btn-readmore--blue:hover {
    background: linear-gradient(120deg, #3b82f6, #1d4ed8);
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.3);
}

.btn-readmore--orange {
    background: linear-gradient(120deg, #f97316, #fb923c);
    box-shadow: 0 6px 14px rgba(249, 115, 22, 0.25);
}

.btn-readmore--orange:hover {
    background: linear-gradient(120deg, #fb923c, #f97316);
    box-shadow: 0 10px 18px rgba(249, 115, 22, 0.3);
}

.btn-readmore-icon,
.btn-readmore-arrow {
    width: 26px;
    height: 26px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.btn-readmore-icon i,
.btn-readmore-arrow i {
    font-size: 0.8rem;
}

.btn-readmore .btn-text-more,
.btn-readmore .btn-text-less {
    display: inline-flex;
    align-items: center;
}

/* Like Button */
.like-btn i.fa-heart {
    font-size: 1.125rem !important;
    line-height: 1;
}

.like-btn.active {
    color: #ef4444;
}

.like-btn.active i {
    transform: scale(1.2);
}

/* Post Content (Quill çıktısı) */
.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}
.post-content p:last-child {
    margin-bottom: 0;
}

.post-content p,
.post-content li,
.post-content blockquote,
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    white-space: pre-wrap !important;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin: 1.15rem 0 0.85rem !important;
    line-height: 1.3;
    font-weight: 700 !important;
}

.post-content h1 {
    font-size: 1.75rem !important;
}

.post-content h2 {
    font-size: 1.35rem !important;
}

.post-content h3 {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}

.post-content h1 + p,
.post-content h2 + p,
.post-content h3 + p,
.post-content h4 + p,
.post-content h5 + p,
.post-content h6 + p {
    margin-top: 0.35rem !important;
}

.post-content p,
.post-content > div {
    margin: 0 0 0.95rem !important;
}

/* Boş paragraflar (Quill editör boş satırları) — editördeki boşluğa eşitle */
.post-content p:has(> br:only-child),
.post-content div:has(> br:only-child) {
    margin-bottom: 0 !important;
    line-height: 0 !important;
}

.post-content p > br:only-child,
.post-content div > br:only-child {
    display: block;
    content: '';
    min-height: 0.35rem;
}

.post-content br {
    line-height: 1.65;
}


.post-content blockquote,
.post-content .vb-quote,
.prose blockquote,
.prose .vb-quote {
    border-left: 4px solid #2563eb !important;
    background: rgba(37, 99, 235, 0.08) !important;
    padding: 0.85rem 1.25rem !important;
    border-radius: 0.75rem !important;
    font-style: italic;
    margin: 1.25rem 0 !important;
}

.post-content blockquote p,
.post-content .vb-quote p,
.prose blockquote p,
.prose .vb-quote p {
    margin: 0;
}

.post-content .vb-font-sm,
.prose .vb-font-sm {
    font-size: 0.95rem;
}

.post-content .vb-font-lg,
.prose .vb-font-lg {
    font-size: 1.15rem;
}

.post-content .vb-font-xl,
.prose .vb-font-xl {
    font-size: 1.3rem;
}

.line-excerpt {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.line-excerpt br {
    content: '';
}

.line-excerpt .excerpt-dots {
    margin-left: 4px;
}


.post-content pre {
    background: #0f172a;
    color: #f8fafc;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    font-size: 0.95rem;
    margin: 1.25rem 0;
}

/* Profile hero base hooks */
.profile-hero {
    position: relative;
}

.profile-hero-cover {
    display: none;
}

.profile-hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-quote-card {
    position: relative;
    scroll-margin-top: 140px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.profile-quote-card:target {
    box-shadow: 0 15px 45px rgba(16, 185, 129, 0.25), 0 0 0 3px rgba(16, 185, 129, 0.35);
    transform: translateY(-2px);
    animation: profileQuoteTwinkle 2.2s ease-out 1;
}

.profile-quote-card:target::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.35), transparent 55%);
    opacity: 0;
    animation: profileQuoteGlow 1.6s ease-out 1;
    pointer-events: none;
}

@keyframes profileQuoteGlow {
    0% { opacity: 0; }
    30% { opacity: 0.8; }
    100% { opacity: 0; }
}

@keyframes profileQuoteTwinkle {
    0% { box-shadow: 0 0 0 rgba(16, 185, 129, 0); }
    40% { box-shadow: 0 15px 45px rgba(16, 185, 129, 0.35), 0 0 0 4px rgba(16, 185, 129, 0.4); }
    100% { box-shadow: 0 15px 45px rgba(16, 185, 129, 0.15), 0 0 0 0 rgba(16, 185, 129, 0); }
}

.quote-card:target {
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.35), 0 0 0 3px rgba(16, 185, 129, 0.35);
    transform: translateY(-3px);
    animation: quoteCardPulse 1.4s ease-out 1;
}

.quote-card:target::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.45), transparent 55%);
    opacity: 0;
    pointer-events: none;
    animation: quoteCardGlint 1.4s ease-out 1;
}

@keyframes quoteCardGlint {
    0% { opacity: 0; }
    20% { opacity: 0.85; }
    40% { opacity: 0.1; }
    60% { opacity: 0.85; }
    100% { opacity: 0; }
}

@keyframes quoteCardPulse {
    0% { box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08); }
    20% { box-shadow: 0 24px 58px rgba(16, 185, 129, 0.45), 0 0 0 4px rgba(16, 185, 129, 0.35); }
    40% { box-shadow: 0 16px 40px rgba(16, 185, 129, 0.2), 0 0 0 0 rgba(16, 185, 129, 0); }
    60% { box-shadow: 0 24px 58px rgba(16, 185, 129, 0.4), 0 0 0 4px rgba(16, 185, 129, 0.25); }
    100% { box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08), 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Quote anchor highlight */
#section-quotes article[id^="quote-"] {
    position: relative;
    scroll-margin-top: 140px;
    transition: transform 0.25s ease;
}

#section-quotes article[id^="quote-"]::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid rgba(16, 185, 129, 0.55);
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    opacity: 0;
    pointer-events: none;
}

#section-quotes article[id^="quote-"]:target {
    transform: translateY(-2px);
}

#section-quotes article[id^="quote-"]:target::after {
    opacity: 1;
    animation: quoteTargetPulse 1.6s ease-out forwards;
}

@keyframes quoteTargetPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 24px 8px rgba(16, 185, 129, 0.35);
        opacity: 1;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
        opacity: 0;
    }
}

.post-content code {
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    padding: 0.15rem 0.4rem;
    border-radius: 0.35rem;
    font-size: 0.95em;
}

.post-content pre code {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.85rem;
    margin: 1.25rem auto;
    display: block;
    box-shadow: 0 20px 25px -15px rgba(15, 23, 42, 0.4);
}
.vb-editor-area img:focus { outline: none; }
.vb-editor-area img::selection,
.vb-editor-area figure::selection,
.ql-editor img::selection,
.ql-editor figure::selection {
    background: rgba(255, 196, 38, 0.35);
}

.vb-editor-area img::-moz-selection,
.vb-editor-area figure::-moz-selection,
.ql-editor img::-moz-selection,
.ql-editor figure::-moz-selection {
    background: rgba(255, 196, 38, 0.35);
}

.post-content figure {
    margin: 1.25rem 0;
    text-align: center;
}

.post-content figcaption {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.post-content ul,
.post-content ol {
    margin: 1rem 0 1rem 1.5rem;
    padding-left: 0.75rem;
}

.post-content li {
    margin-bottom: 0.35rem;
}

.post-content .ql-align-center {
    text-align: center;
}

.post-content .ql-align-right {
    text-align: right;
}

.post-content .ql-align-justify {
    text-align: justify;
}

.post-content .ql-indent-1 { margin-left: 1.5rem; }
.post-content .ql-indent-2 { margin-left: 3rem; }
.post-content .ql-indent-3 { margin-left: 4.5rem; }
.post-content .ql-indent-4 { margin-left: 6rem; }
.post-content .ql-indent-5 { margin-left: 7.5rem; }
.post-content .ql-indent-6 { margin-left: 9rem; }
.post-content .ql-indent-7 { margin-left: 10.5rem; }
.post-content .ql-indent-8 { margin-left: 12rem; }

.post-content [style*="background"] {
    padding: 0.15rem 0.35rem;
    border-radius: 0.35rem;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.post-content th,
.post-content td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    text-align: left;
}

.post-content th {
    background: #f3f4f6;
    font-weight: 600;
}

.post-content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2rem 0;
}

/* Comment Section */
.comment-section {
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
    padding-top: 1rem;
}

.comment-form textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem;
    resize: none;
    transition: all 0.2s;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Responsive Sidebar */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        width: 280px;
        background: white;
        z-index: 40;
        padding: 1rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 35;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }

    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
}

    /* Notification Center */
    .notification-center-card {
        position: relative;
        border-radius: 1.5rem;
        border: 1px solid rgba(15, 23, 42, 0.08);
        background: #ffffff;
        overflow: hidden;
    }

    .notification-center-body {
        display: grid;
        gap: 1.25rem;
    }

    @media (min-width: 640px) {
        .notification-center-body {
            grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
        }
    }

    .notification-cluster {
        border-radius: 1.25rem;
        border: 1px solid rgba(15, 23, 42, 0.08);
        background: rgba(248, 250, 252, 0.75);
        padding: 1rem 1.1rem;
        backdrop-filter: blur(6px);
    }

    .notification-cluster-head {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 0.85rem;
    }

    .notification-cluster-head .title {
        display: block;
        font-size: 0.95rem;
        font-weight: 600;
        color: #0f172a;
    }

    .notification-cluster-head .subtitle {
        display: block;
        font-size: 0.78rem;
        color: #475569;
        margin-top: 0.15rem;
    }

    .notification-badge {
        min-width: 2.25rem;
        padding: 0.15rem 0.55rem;
        border-radius: 999px;
        background: #0f172a;
        color: #fff;
        font-size: 0.75rem;
        font-weight: 600;
        text-align: center;
    }

    .notification-list {
        list-style: none;
        padding: 0;
        margin: 0 0 0.85rem;
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
    }

    .notification-item {
        display: flex;
        gap: 0.65rem;
        align-items: flex-start;
        border-radius: 1rem;
        border: 1px solid transparent;
        background: rgba(255, 255, 255, 0.9);
        padding: 0.65rem 0.75rem;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }

    .notification-item:hover {
        border-color: rgba(15, 23, 42, 0.08);
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    }

    .notification-item[data-kind="notification"] {
        border-left: 3px solid #6366f1;
        padding-left: 0.9rem;
    }

    .notification-item-main {
        flex: 1;
        min-width: 0;
    }

    .notification-item-title {
        display: flex;
        justify-content: space-between;
        gap: 0.5rem;
        font-size: 0.85rem;
        font-weight: 600;
        color: #0f172a;
    }

    .notification-text {
        font-size: 0.88rem;
        color: #1f2937;
        margin: 0.15rem 0 0;
        line-height: 1.4;
    }

    .notification-meta {
        font-size: 0.75rem;
        color: #94a3b8;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }

    .notification-type-chip {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0.1rem 0.55rem;
        border-radius: 999px;
        background: rgba(99, 102, 241, 0.12);
        color: #4338ca;
        font-size: 0.72rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .notification-delete {
        border: none;
        background: rgba(15, 23, 42, 0.05);
        color: #475569;
        border-radius: 999px;
        width: 32px;
        height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.2s ease, transform 0.2s ease;
    }

    .notification-delete:hover {
        background: rgba(244, 63, 94, 0.12);
        color: #be123c;
        transform: rotate(-12deg);
    }

    .notification-placeholder,
    .notification-empty {
        font-size: 0.85rem;
        color: #94a3b8;
        padding: 0.5rem 0;
    }

    .notification-link {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 0.85rem;
        font-weight: 600;
        text-decoration: none;
        color: #4338ca;
        transition: color 0.2s ease;
    }

    .notification-link.danger {
        color: #be123c;
    }

    .notification-link:hover {
        color: #1d4ed8;
    }

    .notification-cluster-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .notification-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        padding: 0.4rem 1rem;
        border-radius: 999px;
        border: 1px solid rgba(99, 102, 241, 0.4);
        background: rgba(99, 102, 241, 0.08);
        color: #312e81;
        font-weight: 600;
        font-size: 0.85rem;
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .notification-pill:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
    }

    .notification-pill.danger {
        border-color: rgba(244, 63, 94, 0.35);
        background: rgba(244, 63, 94, 0.08);
        color: #b91c1c;
    }

    .notification-pill.ghost {
        background: transparent;
        border-color: rgba(15, 23, 42, 0.15);
    }

    .notification-icon-button {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        border: 1px solid rgba(15, 23, 42, 0.12);
        background: rgba(255, 255, 255, 0.6);
        color: #1f2937;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s ease, background 0.2s ease;
    }

    .notification-icon-button:hover {
        transform: translateY(-1px);
        background: rgba(99, 102, 241, 0.12);
    }

    .notification-icon-button.danger {
        border-color: rgba(244, 63, 94, 0.25);
        color: #b91c1c;
    }

    .notification-center-guest {
        padding: 1.25rem;
        border-radius: 1.25rem;
        background: rgba(15, 23, 42, 0.03);
        border: 1px dashed rgba(15, 23, 42, 0.12);
        text-align: center;
    }

    .notification-center-guest-actions {
        display: flex;
        justify-content: center;
        gap: 0.75rem;
        margin-top: 0.85rem;
    }

    .notification-feedback {
        font-size: 0.78rem;
        color: #475569;
        min-height: 1rem;
    }

    /* Classic theme specific notification tweaks */
    .notification-center-card[data-theme="classic"] {
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 85%);
        border-color: rgba(99, 102, 241, 0.12);
    }

    .notification-center-card[data-theme="classic"] .notification-center-body {
        grid-template-columns: 1fr;
    }

    @media (min-width: 768px) {
        .notification-center-card[data-theme="classic"] .notification-center-body {
            grid-template-columns: 1fr;
        }
    }

    .notification-center-card[data-theme="classic"] .notification-cluster {
        position: relative;
        background: #ffffff;
        border-radius: 1.5rem;
        border: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
        padding: 1.25rem 1.35rem 1.45rem;
        overflow: hidden;
    }

    .notification-center-card[data-theme="classic"] .notification-cluster::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(14, 165, 233, 0.08));
        opacity: 0;
        transition: opacity 0.25s ease;
        z-index: 0;
    }

    .notification-center-card[data-theme="classic"] .notification-cluster:hover::before {
        opacity: 1;
    }

    .notification-center-card[data-theme="classic"] .notification-cluster > * {
        position: relative;
        z-index: 1;
    }

    .notification-center-card[data-theme="classic"] .notification-cluster-head {
        padding-right: 3rem;
        margin-bottom: 1rem;
    }

    .notification-center-card[data-theme="classic"] .notification-badge {
        position: absolute;
        top: 1.15rem;
        right: 1.35rem;
        background: #0f172a;
        box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
        min-width: 2.5rem;
        font-size: 0.78rem;
    }

    .notification-center-card[data-theme="classic"] .notification-list {
        margin-bottom: 1.1rem;
        gap: 0.75rem;
    }

    .notification-center-card[data-theme="classic"] .notification-link {
        font-size: 0.9rem;
        color: #4338ca;
    }

    .notification-center-card[data-theme="classic"] .notification-link.danger {
        color: #dc2626;
    }

    .notification-center-card[data-theme="classic"] .notification-cluster-actions {
        gap: 0.5rem;
    }

    .notification-center-card[data-theme="classic"] .notification-placeholder {
        color: #94a3b8;
    }

    .classic-notification-actions {
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.4rem 0.6rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.65);
        box-shadow: 0 12px 30px rgba(79, 70, 229, 0.18);
        border: 1px solid rgba(99, 102, 241, 0.25);
    }

    .classic-notification-actions .notification-pill {
        padding: 0.45rem 1.1rem;
        border-radius: 999px;
        border: none;
        background: linear-gradient(135deg, #eef2ff, #e0e7ff);
        color: #312e81;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }

    .classic-notification-actions .notification-pill i {
        margin-right: 0.35rem;
        font-size: 0.85rem;
    }

    .classic-notification-actions .notification-pill.danger {
        background: linear-gradient(135deg, #fee2e2, #fecaca);
        color: #991b1b;
    }

    /* Classic activity feed */
    .classic-activity-feed {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    .classic-activity-card {
        display: flex;
        gap: 1rem;
        padding: 1.25rem 1.35rem;
        border-radius: 1.5rem;
        border: 1px solid rgba(15, 23, 42, 0.08);
        background: #ffffff;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
        position: relative;
        align-items: flex-start;
    }

    @media (max-width: 640px) {
        .classic-activity-card {
            flex-direction: column;
        }
    }

    .classic-activity-avatar {
        width: 3.5rem;
        height: 3.5rem;
        border-radius: 1rem;
        overflow: hidden;
        position: relative;
        flex-shrink: 0;
        background: linear-gradient(135deg, #818cf8, #c4b5fd);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 12px 25px rgba(79, 70, 229, 0.35);
    }

    .classic-activity-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .classic-activity-icon {
        position: absolute;
        bottom: -0.35rem;
        right: -0.35rem;
        width: 1.9rem;
        height: 1.9rem;
        border-radius: 999px;
        background: #ffffff;
        color: #4338ca;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
        font-size: 0.85rem;
    }

    .classic-activity-content {
        flex: 1;
        min-width: 0;
    }

    .classic-activity-head {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .classic-activity-label {
        font-size: 0.95rem;
        font-weight: 600;
        color: #111827;
    }

    .classic-activity-time {
        font-size: 0.8rem;
        color: #6b7280;
        margin-top: 0.1rem;
    }

    .classic-activity-chip {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.3rem 0.85rem;
        border-radius: 999px;
        background: rgba(99, 102, 241, 0.12);
        color: #4338ca;
        font-size: 0.78rem;
        font-weight: 600;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .classic-activity-chip i {
        font-size: 0.8rem;
    }

    .classic-activity-message {
        font-size: 0.92rem;
        color: #1f2937;
        margin-top: 0.75rem;
        line-height: 1.5;
    }

    .classic-activity-excerpt {
        font-size: 0.88rem;
        color: #4b5563;
        margin-top: 0.35rem;
        line-height: 1.45;
    }

    .classic-activity-link {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        margin-top: 0.9rem;
        font-size: 0.88rem;
        font-weight: 600;
        color: #2563eb;
        text-decoration: none;
    }

    .classic-activity-link i {
        font-size: 0.8rem;
        transition: transform 0.2s ease;
    }

    .classic-activity-link:hover i {
        transform: translateX(4px);
    }

/* ===== KitapTap-style Sidebar (Full Labels) ===== */
#siteLeftSidebarDrawer.kt-sidebar {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: none !important;
    overflow: visible !important;
}

.kt-sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
}

.kt-section-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 16px 12px 6px;
    margin: 0;
}

.kt-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 12px;
    color: #475569;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.kt-nav-item:hover {
    background: rgba(99, 102, 241, 0.08);
    color: #4f46e5;
}

.kt-nav-item.is-active {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
}

.kt-nav-item.is-active::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4f46e5;
}

.kt-nav-item i {
    font-size: 1.05rem;
    line-height: 1;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.kt-nav-label {
    display: block;
    font-size: 0.92rem;
    font-weight: 500;
    color: inherit;
}

.kt-nav-item.is-active .kt-nav-label {
    font-weight: 600;
}

.kt-nav-item .kt-tooltip {
    display: none !important;
}

.kt-divider {
    width: 100%;
    height: 1px;
    background: #e2e8f0;
    margin: 4px 0;
}

.kt-create-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    padding: 11px 12px;
    border-radius: 12px;
    background: #4f46e5;
    color: #fff;
    text-decoration: none;
    margin-top: 8px;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kt-create-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.kt-create-btn i {
    font-size: 1rem;
}

.kt-create-label {
    display: inline !important;
    font-weight: 600;
    font-size: 0.92rem;
}

/* Mobile Drawer */
@media (max-width: 1023px) {
    #siteLeftSidebarDrawer.kt-sidebar {
        width: 86% !important;
        max-width: 380px !important;
        background: #fff !important;
        border-right: 1px solid #e2e8f0 !important;
        box-shadow: 0 25px 50px -12px rgba(0,0,0,.25) !important;
    }
    .kt-sidebar-inner {
        align-items: stretch;
        padding: 8px 16px 100px;
        gap: 2px;
    }
    .kt-nav-item {
        padding: 10px 12px;
    }
}