html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #e0edfe;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content-wrapper {
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0 25px 80px rgba(166, 180, 208, 0.35), 0 0 50px rgba(166, 180, 208, 0.25);
    border-radius: 2rem;
    border: 15px solid #fff;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 40px);
    max-width: 2440px;
    width: 92%;
    height: 88vh;
    margin: auto;
}

/* Login sayfası için özel stil */
.login-page .content-wrapper {
    max-width: 1380px;
    max-height: 717px;
    min-width: 500px;
    min-height: 580px;
    width: 1380px;
    height: 717px;
}

/* Login sonrası animasyon stilleri */
.content-wrapper.initial-size {
    max-width: 1380px !important;
    max-height: 717px !important;
    width: 1380px !important;
    height: 717px !important;
    transition: none !important;
}

.content-wrapper.animate-expand {
    transition: max-width 1.2s ease, width 1.2s ease, max-height 1.2s ease 0.6s, height 1.2s ease 0.6s !important;
}

/* Çıkış yapıldığında başlangıç boyutları */
.content-wrapper.reverse-initial-size {
    max-width: 2440px !important;
    max-height: calc(100vh - 40px) !important;
    width: 92% !important;
    height: 88vh !important;
    transition: none !important;
}

/* Çıkış yapıldığında animasyon zamanlaması */
.content-wrapper.reverse-animate {
    transition: max-height 1.2s ease, height 1.2s ease, max-width 1.2s ease 0.6s, width 1.2s ease 0.6s !important;
}

.navbar {
    padding: 1rem 2rem;
    width: 100%;
    margin-bottom: 1rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 500;
    color: #035398;
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.nav-link {
    color: #444;
    font-weight: 600;
    padding: 0.5rem 1.5rem !important;
    margin: 0 0.3rem;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: #222;
}

.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

header {
    flex-shrink: 0;
}

/* Tüm tarayıcılar için ortak scrollbar stilleri */
* {
    /* İnce scrollbar (Firefox ve uyumlu tarayıcılar) */
    scrollbar-width: none;
    /*none*/
    /* İlk değer thumb, ikinci değer track rengi */
    scrollbar-color: #cbd5e1 transparent;
}



/* Chrome ve Webkit tabanlı tarayıcılar için scrollbar stilleri */
body::-webkit-scrollbar {
    width: 6px;
    /* Daha ince scrollbar */
    height: 6px;
    /* Yatay scrollbar için de */
}

body::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 50px;
    /* Tam yuvarlak görünüm */
}

body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 50px;
    /* Tam yuvarlak görünüm */
    border: 1px solid transparent;
    /* İnce kenarlık */
    background-clip: padding-box;
}

body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
    border: 1px solid transparent;
    background-clip: padding-box;
}

body::-webkit-scrollbar-corner {
    background: transparent;
}

/* Scrollbar butonlarını gizle */
body::-webkit-scrollbar-button {
    display: none;
}


/* Tüm tarayıcılar için ortak scrollbar stilleri */
/** {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}*/

/* Chrome ve Webkit tabanlı tarayıcılar için scrollbar stilleri */
/*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 50px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 50px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-corner {
    background: transparent;
}*/

/* Scrollbar butonlarını gizle */
/*::-webkit-scrollbar-button {
    display: none;
}*/

.help-dropdown {
    border-radius: 12px;
    animation: slideDown 0.3s ease-out;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    right: auto !important;
    left: 0 !important;
    min-width: 250px;
}

.help-dropdown .dropdown-item {
    padding: 10px 20px;
    color: #444;
    font-weight: 600;
    font-size: 0.85rem;
}

.help-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
}

.help-dropdown .dropdown-item i {
    color: #005198;
    font-size: 1.2rem;
    vertical-align: -2px;
}

.help-dropdown .dropdown-item i.me-2 {
    margin-right: 0.85rem !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Normal durumda navbar animasyonları */
.navbar-brand.animate__animated {
    animation-delay: 0.2s;
}

.nav-link.animate__animated {
    animation-delay: calc(0.2s + var(--nav-delay));
}

/* Login sonrası navbar animasyonları */
.delayed-navbar .navbar-brand.animate__animated {
    animation-delay: 0s !important;
}

.delayed-navbar .nav-link.animate__animated {
    animation-delay: calc(0s + var(--nav-delay)) !important;
}

/* Ana içerik animasyonları */
.main-content-wrapper {
    height: 100%;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

/* Normal durumda içerik animasyonu */
.main-content-wrapper {
    animation-delay: 0.7s;
    /* Son nav-link'ten sonra */
}

/* Login sonrası içerik animasyonu */
.delayed-content .main-content-wrapper {
    animation-delay: 1s !important;
    /* Dikey animasyon başlamadan hemen önce */
    animation-duration: 1.3s !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #fff;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
    }

    .navbar-nav {
        width: 100%;
    }

    .nav-item {
        margin: 5px 0;
    }

    .navbar-toggler {
        border: none;
        padding: 0.5rem;
    }

    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }

    .dropdown-menu {
        border: none;
        padding: 0.5rem;
    }
}

@media (min-width: 992px) {
    .navbar-collapse {
        justify-content: flex-end;
    }
}

.nav-link.active {
    color: #2aadea !important;
    font-weight: 500;
}