/* ===== GENEL AYARLAR ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Seri kart okuyucu durum göstergesi */
.serial-reader-status {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 10000;
    background: rgba(15, 15, 35, 0.9);
    color: #fff;
    border: 1px solid rgba(102, 126, 234, 0.5);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.serial-connect-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: 600;
    cursor: pointer;
}

.serial-connect-btn:hover {
    filter: brightness(1.1);
}

:root {
    /* Renk Paleti - Modern ve Canlı */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);

    /* Tipografi */
    --font-primary: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    /* Spacing — ekran yüksekliğine göre ölçeklenir (zoom gerektirmeden sığar) */
    --spacing-xs: clamp(0.25rem, 0.6vh, 0.5rem);
    --spacing-sm: clamp(0.5rem, 1.2vh, 1rem);
    --spacing-md: clamp(0.75rem, 1.8vh, 1.5rem);
    --spacing-lg: clamp(1rem, 2.4vh, 2rem);
    --spacing-xl: clamp(1.5rem, 3.5vh, 3rem);

    /* Touch Targets — ölçeklenebilir */
    --touch-min: clamp(36px, 5.5vh, 48px);
    --touch-optimal: clamp(42px, 7vh, 64px);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
    background-attachment: fixed;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Sağ Tık Menüsü Engelleme */
body {
    -webkit-touch-callout: none;
}

/* Scrollbar Tamamen Gizle */
::-webkit-scrollbar {
    display: none;
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* ===== EKRAN KONTEYNERLERİ ===== */
.screen-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
}

.screen-container.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

/* ===== IDLE EKRAN ===== */
#idleScreen {
    display: flex;
    align-items: center;
    justify-content: center;
}

.idle-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.logo-showcase {
    animation: fadeInScale 1s ease-out;
}

.main-logo {
    width: clamp(180px, 34vh, 400px);
    height: clamp(180px, 34vh, 400px);
    object-fit: contain;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.5));
    animation: float 4s ease-in-out infinite;
    margin-bottom: var(--spacing-lg);
}

.school-title {
    color: white;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.welcome-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: var(--spacing-xl);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.card-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 50px;
    padding: var(--spacing-md) var(--spacing-xl);
    box-shadow: var(--glass-shadow);
}

.card-indicator i {
    font-size: 3rem;
    color: white;
    animation: pulse 2s infinite;
}

.pulse-dot {
    width: 20px;
    height: 20px;
    background: #43e97b;
    border-radius: 50%;
    animation: pulseDot 2s infinite;
    box-shadow: 0 0 20px #43e97b;
}

/* Misafir Girişi Butonu */
.guest-entry-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-md);
}

/* ===== MEMNUNİYET ANKETİ (Misafir girişinin üstünde) ===== */
.guest-entry-container .guest-entry-btn {
    justify-content: center;
}

.satisfaction-poll {
    position: relative;
    min-width: 400px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 3px solid rgba(255, 215, 64, 0.85);
    border-radius: 32px;
    padding: 22px 28px 26px;
    color: white;
    text-align: center;
    animation: satisfactionGlow 2.6s ease-in-out infinite;
}

@keyframes satisfactionGlow {
    0%, 100% { box-shadow: 0 10px 35px rgba(0, 0, 0, 0.30), 0 0 0 0 rgba(255, 215, 64, 0.55); }
    50%      { box-shadow: 0 10px 35px rgba(0, 0, 0, 0.30), 0 0 28px 6px rgba(255, 215, 64, 0.55); }
}

.satisfaction-question {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 18px;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.satisfaction-buttons {
    display: flex;
    justify-content: center;
    gap: 36px;
}

.satisfaction-btn {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.9);
    font-size: 5.2rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, opacity 0.3s ease, box-shadow 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    animation: satisfactionBounce 3s ease-in-out infinite;
}

.satisfaction-btn.happy {
    background: radial-gradient(circle at 35% 30%, #7be38a, #2e9e44);
}

.satisfaction-btn.sad {
    background: radial-gradient(circle at 35% 30%, #ff8a80, #c62828);
    animation-delay: 1.5s;
}

@keyframes satisfactionBounce {
    0%, 80%, 100% { transform: translateY(0) scale(1); }
    88%           { transform: translateY(-10px) scale(1.06); }
}

.satisfaction-btn:active {
    transform: scale(0.9);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.satisfaction-poll.locked {
    animation: none;
}

.satisfaction-poll.locked .satisfaction-btn {
    opacity: 0.3;
    pointer-events: none;
    animation: none;
}

.satisfaction-poll.locked .satisfaction-btn.chosen {
    opacity: 1;
    transform: scale(1.12);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.35), 0 8px 22px rgba(0, 0, 0, 0.35);
}

.satisfaction-poll.locked .satisfaction-question {
    color: #ffd740;
}
/* ===== TEST GİRİŞİ (Öğrenci No — admin ayarı TestKeyboard ile) ===== */
.test-entry-container {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: var(--spacing-md);
    box-shadow: var(--glass-shadow);
}

.test-entry-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.test-entry-label i {
    color: #667eea;
    font-size: 1.1rem;
}

.test-entry-row {
    display: flex;
    gap: 8px;
}

.test-entry-input {
    width: 180px;
    background: rgba(15, 15, 35, 0.6);
    border: 1px solid rgba(102, 126, 234, 0.5);
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    letter-spacing: 2px;
    padding: 10px 14px;
    outline: none;
    cursor: text;
}

.test-entry-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.4);
}

.test-entry-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: normal;
}

.test-entry-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(102, 126, 234, 0.35);
    border: 1px solid rgba(102, 126, 234, 0.6);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.test-entry-btn:hover {
    background: rgba(102, 126, 234, 0.6);
}

.guest-entry-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 50px;
    padding: var(--spacing-md) var(--spacing-xl);
    box-shadow: var(--glass-shadow);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: var(--touch-optimal);
}

.guest-entry-btn i {
    font-size: 1.8rem;
}

.guest-entry-btn:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
    color: white;
}

.guest-entry-btn:active {
    transform: translateY(-2px) scale(1.02);
}

/* Dekoratif Çemberler */
.decorative-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    animation: floatCircle 20s infinite ease-in-out;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 500px;
    height: 500px;
    bottom: 10%;
    right: 10%;
    animation-delay: 5s;
}

.circle-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 20%;
    animation-delay: 10s;
}

/* ===== MENÜLÜ ANA EKRAN ===== */
#menuScreen {
    padding: var(--spacing-md);
}

.kiosk-layout {
    display: grid;
    grid-template-columns: 120px 1fr 120px;
    gap: var(--spacing-md);
    height: 100%;
    width: 100%;
}

/* ===== MENÜ SÜTUNLARI ===== */
.menu-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    height: 100%;
    min-height: 0;
    /* "safe center": sığdığında ortalar, taştığında baştan hizalar (kırpılmayı önler) */
    justify-content: safe center;
    overflow-y: auto;
}

.menu-btn {
    min-height: var(--touch-optimal);
    padding: var(--spacing-md) var(--spacing-sm);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.menu-btn i {
    font-size: clamp(1.1rem, 2.8vh, 2rem);
    display: block;
}

.menu-btn span {
    font-size: clamp(0.6rem, 1.5vh, 0.75rem);
    line-height: 1.2;
}

.menu-btn:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
}

.menu-btn:active {
    transform: translateY(-2px) scale(1.02);
}

/* ===== ORTA ALAN (CENTER AREA) ===== */
.center-area {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

/* Üst Kısım: Logo ve Slider */
.top-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: var(--spacing-lg);
    box-shadow: var(--glass-shadow);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    min-height: 0;
    overflow: hidden;
}

.logo-container {
    text-align: center;
}

.school-logo {
    width: clamp(56px, 10vh, 120px);
    height: clamp(56px, 10vh, 120px);
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

/* Duyuru Slider */
.announcement-slider {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    min-height: 0;
}

/* Carousel'in slider alanını doldurması için (görsel yüklenmese de yükseklik korunur) */
#announcementCarousel,
#announcementCarousel .carousel-inner,
#announcementCarousel .carousel-item {
    height: 100%;
}

.announcement-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    min-height: 0;
    /* Görsel yoksa/yüklenemezse: varsayılan siyah zemin — yazılar üzerinde görünür */
    background: #000;
}

.announcement-card img {
    border-radius: 20px;
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.carousel-caption {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: var(--spacing-lg);
    bottom: 0;
    left: 0;
    right: 0;
}

.carousel-caption h3 {
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

/* Alt Kısım: Günlük İçerik */
.bottom-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    height: 30%;
    overflow: hidden;
}

.daily-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: var(--spacing-md);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.daily-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
}

.content-icon {
    font-size: clamp(1.3rem, 3.4vh, 2.5rem);
    text-align: center;
    margin-bottom: var(--spacing-xs);
    line-height: 1;
}

.content-icon i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-title {
    color: white;
    font-size: clamp(0.9rem, 2.1vh, 1.2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-xs);
}

/* Günün Sözü */
.quote-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(0.75rem, 1.7vh, 1rem);
    font-style: italic;
    text-align: center;
    line-height: 1.4;
    margin-bottom: var(--spacing-xs);
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.quote-author {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-align: center;
    font-weight: 600;
}

/* Günün Sorusu */
.question-text {
    color: white;
    font-size: clamp(0.75rem, 1.7vh, 1rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--spacing-xs);
    line-height: 1.3;
}

.question-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xs);
    flex: 1;
    min-height: 0;
}

.option-btn {
    min-height: clamp(32px, 5vh, 48px);
    padding: clamp(2px, 0.8vh, 8px);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-size: clamp(0.65rem, 1.5vh, 0.85rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.option-btn.correct {
    background: var(--success-gradient);
    border-color: transparent;
    animation: pulse 0.5s ease;
}

.option-btn.incorrect {
    background: var(--secondary-gradient);
    border-color: transparent;
    animation: shake 0.5s ease;
}

.question-result {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-align: center;
}

.result-text {
    color: white;
    font-size: 0.9rem;
    margin: 0;
}

/* ===== ACİL DUYURU OVERLAY ===== */
.urgent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.urgent-content {
    background: var(--warning-gradient);
    padding: var(--spacing-xl);
    border-radius: 30px;
    text-align: center;
    max-width: 800px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

/* Duyuru Sayacı */
.announcement-counter {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.urgent-icon {
    font-size: 6rem;
    color: white;
    animation: bounce 1s infinite;
}

.urgent-title {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    margin: var(--spacing-md) 0;
}

.urgent-message {
    color: white;
    font-size: 1.5rem;
    line-height: 1.6;
}

/* Acil duyuru görseli */
.urgent-image {
    max-width: 100%;
    max-height: 320px;
    margin-top: var(--spacing-md);
    border-radius: 16px;
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Acil duyuru tip renkleri (admin panelinden seçilen "Görünüm") */
.urgent-overlay.urgent-danger .urgent-content {
    background: linear-gradient(135deg, #e53935, #b71c1c);
}

.urgent-overlay.urgent-warning .urgent-content {
    background: linear-gradient(135deg, #fb8c00, #ef6c00);
}

.urgent-overlay.urgent-info .urgent-content {
    background: linear-gradient(135deg, #1e88e5, #1565c0);
}

/* ===== MODAL ===== */
.student-modal {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95));
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    color: white;
}

.student-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.student-modal .btn-close {
    filter: invert(1);
}

.student-info {
    text-align: center;
    padding: var(--spacing-lg);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.info-item {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md);
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.info-item i {
    font-size: 1.5rem;
}

/* Güvenlik Sorusu Modal */
.security-modal {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95));
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    color: white;
}

.security-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.security-modal .btn-close {
    filter: invert(1);
}

.question-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.security-modal .form-control {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.1rem;
    padding: 12px;
}

.security-modal .form-control:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1);
}

.security-modal .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.security-modal .form-label {
    color: rgba(255, 255, 255, 0.9);
}

.security-modal .btn-primary {
    background: var(--success-gradient);
    border: none;
    font-weight: 700;
    padding: 15px;
    transition: all 0.3s ease;
}

.security-modal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.security-modal .form-control.is-invalid {
    border-color: #dc3545;
    animation: shake 0.5s ease;
}

.security-modal .form-floating>.form-control {
    height: calc(3.5rem + 2px);
}

.security-modal .form-floating>label {
    padding: 1rem 0.75rem;
}



/* ===== ANIMASYONLAR ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

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

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

@keyframes pulse {

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

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes pulseDot {

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

    50% {
        transform: scale(1.3);
        opacity: 0.6;
    }
}

@keyframes floatCircle {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {

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

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

@keyframes shake {

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

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

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

/* ===== TOUCH FEEDBACK ===== */
.menu-btn:active,
.option-btn:active,
button:active {
    opacity: 0.8;
}

/* ===== SANAL KLAVYE ===== */
.virtual-keyboard {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 85%;
    max-width: 900px;
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 2px solid var(--glass-border);
    border-radius: 25px 25px 0 0;
    padding: var(--spacing-md);
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.virtual-keyboard.show {
    transform: translateX(-50%) translateY(0);
}

.keyboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.keyboard-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.keyboard-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.keyboard-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.keyboard-keys {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
}

.key {
    min-width: 45px;
    min-height: 45px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.key:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.key:active {
    transform: translateY(0) scale(0.95);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Özel Tuşlar */
.key.key-shift,
.key.key-backspace,
.key.key-enter {
    min-width: 80px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.key.key-shift.active {
    background: var(--accent-gradient);
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(79, 172, 254, 0.5);
}

.key.key-space {
    min-width: 300px;
    background: rgba(255, 255, 255, 0.2);
}

.key.key-enter {
    background: var(--success-gradient);
    font-weight: 700;
}

.key.key-number {
    background: rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
}

/* Shift aktif durumunda büyük harfler */
.virtual-keyboard.shift-active .key-letter {
    text-transform: uppercase;
}

/* Klavye açık olduğunda modal'ı yukarı kaydır */
.modal.keyboard-active .modal-dialog {
    transform: translateY(-220px);
    transition: transform 0.4s ease;
}

/* Responsive Tasarım */
@media (max-width: 1200px) {
    .virtual-keyboard {
        width: 95%;
    }

    .key {
        min-width: 50px;
        min-height: 50px;
        font-size: 1.1rem;
    }

    .key.key-shift,
    .key.key-backspace {
        min-width: 80px;
    }

    .key.key-space {
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .key {
        min-width: 40px;
        min-height: 40px;
        font-size: 1rem;
    }

    .key.key-shift,
    .key.key-backspace {
        min-width: 60px;
        font-size: 0.85rem;
    }

    .key.key-space {
        min-width: 200px;
    }
}

/* Klavye Animasyonları */
@keyframes keyPress {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.95);
    }

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

.key.pressed {
    animation: keyPress 0.2s ease;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    min-width: 350px;
    font-family: var(--font-primary);
}

.toast-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid var(--glass-border);
    color: white;
    font-weight: 600;
}

.toast-body {
    color: white;
    font-size: 1rem;
    padding: 1rem;
}

.toast .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.toast .btn-close:hover {
    opacity: 1;
}

.toast-icon {
    font-size: 1.5rem;
}

/* ===== KIOSK VERİ TABLOSU (PDF yerine okunabilir tablolar) ===== */
.kiosk-table-wrap {
    height: 100%;
    overflow: auto;
    padding: clamp(1rem, 3vh, 2.5rem);
    -webkit-overflow-scrolling: touch;
}

/* Özet başlık kartı (öğrenci bilgisi + toplam kayıt) */
.kiosk-table-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(102, 126, 234, 0.12);
    border: 1px solid rgba(102, 126, 234, 0.35);
    border-radius: 16px;
    padding: clamp(0.9rem, 2vh, 1.4rem) clamp(1.2rem, 2.5vw, 1.8rem);
    margin-bottom: clamp(1rem, 2.5vh, 1.6rem);
}

.kiosk-table-summary .kt-student {
    font-size: clamp(1.1rem, 2.2vh, 1.5rem);
    font-weight: 700;
    color: #fff;
}

.kiosk-table-summary .kt-student small {
    display: block;
    font-size: clamp(0.8rem, 1.5vh, 1rem);
    font-weight: 500;
    color: #b9c0f0;
    margin-top: 0.15rem;
}

.kiosk-table-summary .kt-count {
    font-size: clamp(0.85rem, 1.6vh, 1.05rem);
    font-weight: 600;
    color: #fff;
    background: var(--primary-gradient);
    border-radius: 999px;
    padding: 0.4rem 1.1rem;
    white-space: nowrap;
}

/* Tablo */
.kiosk-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: #eef0ff;
    font-size: clamp(0.85rem, 1.7vh, 1.05rem);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.kiosk-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    text-align: left;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    padding: clamp(0.7rem, 1.6vh, 1.1rem) clamp(0.8rem, 1.4vw, 1.3rem);
    white-space: nowrap;
}

.kiosk-table tbody td {
    padding: clamp(0.7rem, 1.5vh, 1.05rem) clamp(0.8rem, 1.4vw, 1.3rem);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: top;
    line-height: 1.45;
}

.kiosk-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.03);
}

.kiosk-table tbody tr:hover td {
    background: rgba(102, 126, 234, 0.14);
}

/* Bugünün satırı (yemek menüsü vb.) vurgulanır */
.kiosk-table tbody tr.kt-today td {
    background: rgba(67, 233, 123, 0.12);
    box-shadow: inset 3px 0 0 #43e97b;
}

.kiosk-table tbody tr.kt-today:hover td {
    background: rgba(67, 233, 123, 0.18);
}

.kiosk-table .kt-date {
    white-space: nowrap;
    font-weight: 600;
    color: #cfd4ff;
}

.kiosk-table .kt-behavior {
    font-weight: 600;
    color: #fff;
}

.kiosk-table .kt-desc {
    color: #c7cbe6;
    max-width: 42ch;
}

/* Durum rozetleri */
.kt-badge {
    display: inline-block;
    font-size: clamp(0.72rem, 1.4vh, 0.9rem);
    font-weight: 700;
    padding: 0.32rem 0.85rem;
    border-radius: 999px;
    white-space: nowrap;
}

.kt-badge.pending {
    color: #ffd666;
    background: rgba(250, 173, 20, 0.15);
    border: 1px solid rgba(250, 173, 20, 0.5);
}

.kt-badge.approved {
    color: #ff8f8f;
    background: rgba(245, 87, 108, 0.15);
    border: 1px solid rgba(245, 87, 108, 0.55);
}

.kt-badge.neutral {
    color: #9fd6ff;
    background: rgba(79, 172, 254, 0.15);
    border: 1px solid rgba(79, 172, 254, 0.5);
}

/* Boş durum */
.kiosk-table-empty {
    text-align: center;
    padding: clamp(2rem, 6vh, 4rem);
    color: #b9c0f0;
}

.kiosk-table-empty i {
    font-size: clamp(2.5rem, 7vh, 4rem);
    color: #43e97b;
    display: block;
    margin-bottom: 1rem;
}

.kiosk-table-empty h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

/* ===== TAM EKRAN SUNU / VİDEO (idle ekran) ===== */
/* Acil duyuru (9999) ve bildirimlerin altında, diğer her şeyin üstünde */
.presentation-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9000;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: none;
    overflow: hidden;
}

.presentation-overlay.show {
    opacity: 1;
}

.presentation-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.presentation-slide {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.presentation-slide.visible {
    opacity: 1;
}

.presentation-hint {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    padding: 0.6rem 1.6rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1.25rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0.85;
}

.presentation-hint i {
    margin-right: 0.4rem;
}

/* ===== KAT PLANLARI & NASIL GİDERİM? (wayfinding.js) ===== */
/* Menü/modal katmanlarının üstünde; sunum (9000) ve acil duyurunun (9999) altında */
.wf-overlay {
    position: fixed;
    inset: 0;
    z-index: 8000;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #16213e 0%, #1e3c72 55%, #4a1a7a 100%);
    color: #fff;
    font-family: var(--font-primary);
}

.wf-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: clamp(0.6rem, 1.6vh, 1.2rem) clamp(1rem, 2vw, 2rem);
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid var(--glass-border);
}

.wf-tabs {
    display: flex;
    gap: 0.6rem;
    margin: 0 auto;
}

.wf-tab,
.wf-hbtn,
.wf-chip,
.wf-replay {
    border: 2px solid var(--glass-border);
    background: var(--glass-bg);
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.wf-tab {
    font-size: clamp(1.05rem, 2.2vh, 1.5rem);
    padding: 0.7rem 1.8rem;
}

.wf-tab.active,
.wf-chip.active {
    background: var(--primary-gradient);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.5);
}

.wf-hbtn {
    font-size: clamp(1rem, 2vh, 1.3rem);
    padding: 0.6rem 1.4rem;
    min-width: 130px;
}

.wf-close {
    background: rgba(220, 53, 69, 0.35);
}

.wf-tab:active,
.wf-hbtn:active,
.wf-chip:active,
.wf-card:active {
    transform: scale(0.97);
}

.wf-body {
    flex: 1;
    overflow-y: auto;
    padding: clamp(1rem, 2.5vh, 2rem) clamp(1rem, 3vw, 3rem);
}

.wf-title {
    text-align: center;
    font-size: clamp(1.6rem, 3.6vh, 2.6rem);
    font-weight: 800;
    margin-bottom: 1.2rem;
}

.wf-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.4rem;
}

.wf-chip {
    font-size: clamp(1rem, 2vh, 1.25rem);
    padding: 0.55rem 1.4rem;
}

.wf-chip.small {
    font-size: 1rem;
    padding: 0.4rem 1rem;
}

.wf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1rem;
    max-width: 1500px;
    margin: 0 auto;
}

.wf-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    color: #fff;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    padding: 1.1rem 1.3rem;
    box-shadow: var(--glass-shadow);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.wf-card:hover {
    background: rgba(255, 255, 255, 0.18);
}

.wf-card-icon {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: var(--accent-gradient);
}

.wf-card-name {
    font-size: clamp(1.1rem, 2.3vh, 1.45rem);
    font-weight: 700;
    line-height: 1.25;
}

.wf-card-cat {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.1rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.wf-card-desc {
    margin-top: 0.3rem;
    font-size: 0.95rem;
    opacity: 0.8;
}

.wf-empty {
    text-align: center;
    padding: 12vh 1rem;
}

.wf-empty i {
    font-size: 4rem;
    opacity: 0.7;
}

.wf-empty h3 {
    margin-top: 1rem;
    font-weight: 700;
}

/* Ayrıntı: solda video, sağda bilgi + plan */
.wf-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 1.5rem;
    height: 100%;
    align-items: start;
}

.wf-detail-novideo {
    grid-template-columns: 1fr;
    max-width: 1400px;
    margin: 0 auto;
}

.wf-video-box {
    position: relative;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.wf-video {
    display: block;
    width: 100%;
    max-height: calc(100vh - 170px);
    background: #000;
}

.wf-replay {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.6rem;
    padding: 1rem 2.2rem;
    background: rgba(102, 126, 234, 0.9);
}

.wf-info h2 {
    font-size: clamp(1.5rem, 3.2vh, 2.3rem);
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.wf-badge {
    display: inline-block;
    font-weight: 700;
    padding: 0.2rem 0.9rem;
    border-radius: 999px;
    background: var(--primary-gradient);
}

.wf-desc,
.wf-floorline {
    font-size: clamp(1.05rem, 2.2vh, 1.35rem);
    margin: 0.7rem 0 0;
}

.wf-floorline small {
    opacity: 0.75;
}

/* Plan resmi + yüzde konumlu işaretler */
.wf-plan {
    text-align: center;
    margin-top: 1rem;
}

.wf-plan-inner {
    position: relative;
    display: inline-block;
    max-width: 100%;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.wf-plan-inner img {
    display: block;
    max-width: 100%;
    border-radius: 14px;
    user-select: none;
}

.wf-plan-full .wf-plan-inner img {
    max-height: calc(100vh - 300px);
}

.wf-plan-detail .wf-plan-inner img {
    max-height: calc(100vh - 380px);
}

.wf-detail-novideo .wf-plan-detail .wf-plan-inner img {
    max-height: calc(100vh - 320px);
}

.wf-here {
    position: absolute;
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    border-radius: 50%;
    background: #e53935;
    border: 4px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    animation: wfHerePulse 1.6s ease-out infinite;
}

.wf-here span {
    position: absolute;
    left: 50%;
    bottom: 130%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: #e53935;
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.15rem 0.7rem;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

@keyframes wfHerePulse {
    0% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.7), 0 2px 8px rgba(0, 0, 0, 0.5); }
    100% { box-shadow: 0 0 0 26px rgba(229, 57, 53, 0), 0 2px 8px rgba(0, 0, 0, 0.5); }
}

.wf-pin {
    position: absolute;
    transform: translate(-50%, -100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.wf-pin i {
    font-size: 2rem;
    line-height: 1;
    color: #1e88e5;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
    order: 2;
}

.wf-pin span {
    order: 1;
    white-space: nowrap;
    background: rgba(30, 136, 229, 0.95);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    margin-bottom: 2px;
}

.wf-pin.focus i {
    font-size: 3rem;
    color: #fb8c00;
    animation: wfPinBounce 1.2s ease-in-out infinite;
}

.wf-pin.focus span {
    background: #fb8c00;
    font-size: 1rem;
}

@keyframes wfPinBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.wf-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
}

.wf-legend-here {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e53935;
    border: 3px solid #fff;
    vertical-align: middle;
}

@media (max-width: 1100px) {
    .wf-detail { grid-template-columns: 1fr; }
    .wf-tab { padding: 0.6rem 1rem; }
}

/* ===== OKUL HABERLERİ (öğrenci ekranı) ===== */
.news-wrap {
    height: 100%;
    overflow: auto;
    padding: clamp(1rem, 3vh, 2.5rem);
    -webkit-overflow-scrolling: touch;
    color: #fff;
}

.news-back {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 999px;
    padding: 0.4rem 1.1rem;
    font-weight: 600;
    margin-right: 1rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.25rem;
    max-width: 1600px;
    margin: 0 auto;
}

.news-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(102, 126, 234, 0.35);
    border-radius: 18px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease;
}

.news-card:active {
    transform: scale(0.98);
}

.news-card-img {
    height: 190px;
    background: #0b0b1e;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(159, 214, 255, 0.5);
}

.news-card-body {
    padding: 1rem 1.2rem 1.2rem;
}

.news-date {
    font-size: 0.9rem;
    color: #9fd6ff;
    margin-bottom: 0.3rem;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.news-summary {
    margin-top: 0.4rem;
    font-size: 0.95rem;
    opacity: 0.8;
}

.news-detail {
    max-width: 1000px;
    margin: 0 auto;
    font-size: clamp(1.05rem, 2.1vh, 1.3rem);
    line-height: 1.65;
}

.news-detail-title {
    font-size: clamp(1.6rem, 3.4vh, 2.4rem);
    font-weight: 800;
    margin-bottom: 1.2rem;
}

.news-detail-img {
    display: block;
    width: 100%;
    max-height: 55vh;
    object-fit: contain;
    background: #0b0b1e;
    border-radius: 16px;
    margin-bottom: 1.4rem;
}

.news-detail p {
    margin-bottom: 0.9rem;
    color: rgba(255, 255, 255, 0.92);
}

.news-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.news-gallery img {
    width: 100%;
    border-radius: 12px;
    background: #0b0b1e;
}

/* Slider'daki haber slaytı */
.news-slide-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    background: rgba(102, 126, 234, 0.92);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

#announcementInner .carousel-item[data-news-id] {
    cursor: pointer;
}

#announcementInner .carousel-item[data-news-id] .carousel-caption p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Misafir sayfasındaki "Nasıl Giderim?" giriş butonları */
.wf-entry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.wf-entry-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.6rem 1rem;
    border-radius: 22px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 1.7rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease;
}

.wf-entry-btn i {
    font-size: 2.6rem;
}

.wf-entry-btn.directions {
    background: linear-gradient(135deg, #43e97b 0%, #1fa2ff 100%);
}

.wf-entry-btn.floors {
    background: linear-gradient(135deg, #667eea 0%, #b15bff 100%);
}

.wf-entry-btn:active {
    transform: scale(0.97);
}