* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100dvh; /* Modern mobil tarayıcılarda tam ekran uyumu için dvh */
    font-family: 'Inter', sans-serif;
    background-color: #f5f7fa;
    overflow: hidden; /* Prevent body scrolling so the layout stays 100vh */
}

.layout {
    display: flex;
    width: 100%;
    height: 100dvh;
}

/* Sol Menü (Sidebar) */
.sidebar {
    width: 80px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 100px;
    box-shadow: 5px 0 20px rgba(0,0,0,0.05);
    z-index: 10;
    flex-shrink: 0;
}

/* NGM Logo Konteyneri ve Logo */
.ngm-logo-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 150px; 
}

.ngm-logo {
    width: 150px; 
    transform: rotate(-90deg); 
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ngm-logo:hover {
    transform: rotate(-90deg) scale(1.05);
}

/* YouTube Logosu */
.yt-logo-link {
    color: #ff0000;
    font-size: 40px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yt-logo-link:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 10px 15px rgba(255, 0, 0, 0.2);
}

/* İçerik (PDF) Alanı */
.content {
    flex: 1;
    height: 100dvh;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%); /* Çok hafif ve modern bir gradient */
    overflow-y: auto; /* Sayfa içinden scroll yapabilmek için */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 40px;
    scroll-behavior: smooth;
}

/* Modern PDF Konteyneri */
.pdf-wrapper {
    position: relative;
    max-width: 100%;
    opacity: 0; /* Animasyon için başlangıç durumu */
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.pdf-wrapper.loaded {
    opacity: 1;
    transform: translateY(0);
}

canvas#pdf-render {
    display: block;
    max-width: 100%;
    height: auto;
    background-color: white;
    border-radius: 12px; /* Köşeleri hafif yumuşatılmış kağıt görünümü */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 15px rgba(0,0,0,0.05); /* Premium gölge efekti */
    margin: 0 auto;
}

/* Yükleniyor Göstergesi (Loader) */
.loader {
    position: absolute;
    top: 30vh;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: sans-serif;
    color: #555;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}

.loader i {
    font-size: 2.5rem;
    color: #1a4225; /* Temaya uygun yeşil */
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        position: fixed; /* Ekranın altında kesin olarak sabit kalması için */
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
        gap: 0;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.08); /* Yukarıya doğru gölge */
        z-index: 100;
        background-color: #ffffff;
    }

    .ngm-logo-link {
        width: 120px;
        height: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ngm-logo {
        width: 110px;
        transform: rotate(0deg); /* Logoyu düz (yatay) konuma getir */
    }

    .ngm-logo:hover {
        transform: rotate(0deg) scale(1.05);
    }

    .yt-logo-link {
        font-size: 32px;
    }

    .content {
        padding: 30px 15px 100px 15px; /* Alt çubuğun arkasında içerik kalmaması için alttan geniş padding eklendi */
    }
}
