/* Menü uzadığında son maddelere ulaşılabilsin diye logo kutusu üstte sabit kalır,
   menü kalan alanı kaplayıp kendi içinde kayar. Tema .page-sidebar-inner'a
   height:100% verdiği için logo yüksekliği kadar taşma oluyordu. */
.page-sidebar {
    display: flex;
    flex-direction: column;
}

.page-sidebar .logo-box {
    flex: 0 0 auto;
}

.page-sidebar .page-sidebar-inner {
    flex: 1 1 auto;
    height: auto !important;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Kaydırma çubuğu görünmez, kaydırma davranışı korunur. */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.page-sidebar .page-sidebar-inner::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

/* Daraltılmış menüde tema overflow'u gizliyor; bu menüde açılır alt menü
   olmadığı için kaydırmayı burada da açık tutuyoruz. */
@media (min-width: 1200px) {
    .compact-sidebar .page-sidebar {
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .compact-sidebar .page-sidebar .page-sidebar-inner {
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }
}

.settings-section-title {
    font-weight: 700;
    margin-bottom: 2px;
}

.settings-section-note {
    font-size: 13px;
    margin-bottom: 16px;
}

.settings-media {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.settings-media-preview {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: #f7f8fb;
    border: 1px solid #e6e9f0;
    border-radius: 8px;
}

.settings-media-preview img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.settings-media-actions {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 575px) {
    .settings-media {
        flex-direction: column;
    }
}

.filter-bar {
    background: #f7f8fb;
    border: 1px solid #e6e9f0;
    border-radius: 8px;
    padding: 16px 16px 8px;
    margin-bottom: 20px;
}

.filter-bar label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.upcoming-when {
    font-weight: 600;
}

.upcoming-when small {
    display: block;
    font-weight: 400;
    color: #6c757d;
}

.status-toggle-wrap {
    display: flex;
    align-items: center;
    min-width: 120px;
}

.status-toggle-wrap .custom-switch {
    padding-left: 2.25rem;
}

.status-toggle-text {
    margin-left: 6px;
    font-size: 13px;
}

.js-status-select {
    min-width: 140px;
}

.maintenance-banner {
    background: #fff4e5;
    color: #8a5a00;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid #f0d9a8;
}

.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--single {
    height: 38px;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    padding-left: 12px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #6c757d;
}

.select2-dropdown {
    z-index: 1040;
}

.filter-bar .select2-container {
    width: 100% !important;
}

.auth-page.sign-in {
    background: #f8faf9;
}

.auth-page.sign-in .auth-form {
    max-width: 420px;
    margin: 0 auto;
    padding: 40px 24px;
}

.auth-page.sign-in .logo-box {
    text-align: center;
    margin-bottom: 8px;
}

.auth-page.sign-in .auth-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 16px;
    background: #e8f8f1;
    color: #4faa53;
    font-size: 28px;
}

.auth-page.sign-in .logo-box .logo-text {
    display: block;
    font-size: 28px;
    line-height: 1.3;
    word-break: break-word;
}

.auth-page.sign-in .auth-subtitle {
    text-align: center;
    color: #7d7d83;
    margin-bottom: 28px;
}

.auth-page.sign-in .form-group label {
    font-weight: 600;
    color: #3d3d42;
}

.auth-page.sign-in .form-control {
    height: 44px;
}

.auth-page.sign-in .btn-submit {
    height: 44px;
    font-weight: 600;
    margin-top: 12px;
}

.auth-page > .alert {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1080;
    min-width: 280px;
    max-width: 440px;
    margin: 0;
}

@media (max-width: 991px) {
    .auth-page.sign-in .auth-form {
        padding: 32px 16px;
    }
}
