/* Menü Butonları */

.btn-sm {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 5px!Important;
    display: inline-flex;
    align-items: center;
    gap: 0.05rem;
}

.btn-sm i {
    font-size: 0.8rem;
}


/* Menü Container */

.scrollmenu {
    display: flex;
    gap: 0.05rem;
    padding: 0.2rem 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.nav-item {
    margin: 0 !important;
}


/* Badge Stilleri */

.badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 20px!important;
    margin-left: 0.15rem;
    background-color: #1976d2 !important;
    color: #fdffff !important;
    font-weight: normal !important;
    
}


/* Light Mode Özelleştirmeleri */

body.light-mode {
    background: #f5f8fa !important;
}

.light-mode .content-wrapper {
    background: transparent !important;
}


/* Navbar Özelleştirmeleri */

.light-mode .navbar-light {
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-bottom: none;
}

.light-mode .navbar-light .nav-link {
    color: #6c757d !important;
}

.light-mode .navbar-light .nav-link:hover {
    color: #8A4FFF !important;
}

.light-mode .card {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.light-mode .card-header {
    background: transparent !important;
    border-bottom: none;
    padding: 1.5rem;
}

.light-mode .card-body {
    background: transparent;
    padding: 1.5rem;
}

.light-mode .card-footer {
    background: transparent !important;
    border-top: none;
    padding: 1.5rem;
}


/* Info Box Stilleri */

.info-box {
    background: #e3f2fd;
    border: 1px solid #e1e8ed !important;
    border-radius: 12px;
    margin: 0.25rem;
    min-height: 65px!important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.info-box-icon {
    border: none !important;
    background: #1976d2 !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    font-size: 2rem;
    margin: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    position: relative;
}

.info-box-icon a {
    color: transparent !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.info-box-icon i {
    font-size: 28px;
    color: #ffffff!important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.info-box-icon h2 {
    margin: 0;
    line-height: 1;
    font-size: 32px;
    font-weight: 600;
    color: #ffffff!important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.info-box-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 15px;
    flex: 1;
}

.ders {
    color: #1976d2!important;
    font-weight: 600!important;
    font-size: 0.95rem!important;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    line-height: 1.4;
    font-family: 'Poppins', sans-serif;
}

.saat {
    color: #666!important;
    font-size: 0.8rem!important;
    font-weight: 400!important;
    margin-top: 2px;
    margin-left: 8px;
    font-family: 'Poppins', sans-serif;
}

.info-box i {
    font-size: 28px;
    color: #0e2237;
}


/* Mobil Görünüm */

@media (max-width: 768px) {
    .scrollmenu {
        gap: 0.25rem;
    }
    .btn-sm {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }
    .row.mx-0 {
        margin-left: 0.5rem !important;
        margin-right: 0.5rem !important;
    }
    .info-box {
        margin: 0.25rem 0;
    }
    
    /* Footer menü mobil optimizasyonları - AdminLTE'yi geçersiz kılmak için */
    footer .main-footer .footer-menu .btn-xs,
    .footer-menu .btn-xs {
        padding: 0.1rem 0.25rem !important;
        font-size: 0.7rem !important;
    }
    
    footer .main-footer .footer-menu .btn-xs i,
    .footer-menu .btn-xs i {
        font-size: 1.3rem !important;
    }
    
    footer .main-footer .footer-menu .btn-xs span,
    .footer-menu .btn-xs span {
        font-size: 0.6rem !important;
        line-height: 1 !important;
    }
    
    footer .main-footer .footer-menu .scrollmenu,
    .footer-menu .scrollmenu {
        padding: 0.1rem !important;
    }
}


/* Aside Özelleştirmeleri */

.main-sidebar {
    background: linear-gradient(180deg, #003366 0%, #0072c6 50%, #40B3FF 100%) !important;
    border-right: none;
    min-height: 100vh;
}

.brand-link {
    background: transparent !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-link .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}


/* Sidebar Search */

.form-control-sidebar {
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    color: #ffffff !important;
}

.form-control-sidebar::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
    opacity: 1;
}

.btn-sidebar {
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    color: #ffffff !important;
}

.btn-sidebar:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.main-sidebar .nav-link {
    color: #ffffff !important;
}

.main-sidebar .nav-link:hover,
.main-sidebar .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
}

.main-sidebar .nav-header {
    color: rgba(255, 255, 255, 0.7) !important;
}

.main-sidebar .nav-item .nav-icon {
    color: rgba(255, 255, 255, 0.8) !important;
}

.main-sidebar .nav-item:hover .nav-icon,
.main-sidebar .nav-item .nav-link.active .nav-icon {
    color: #ffffff !important;
}

.sidebar hr {
    border-color: rgba(255, 255, 255, 0.1);
}

.gradient-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

.gradient-hr {
    border: none;
    height: 2px;
    background-image: linear-gradient(to right, #4938AE, rgba(73, 56, 174, 0.1));
}


/* Sınıflar Sayfası Stilleri */

.card {
    border-radius: 8px !important;
    border: none !important;
}

.card-header {
    border-radius: 8px 8px 0 0 !important;
    padding: 0.5rem !important;
    border-bottom: none !important;
    border-top: 2px solid #1976d2 !important;
}

.card:not(.card-header) {
    border-top: none !important;
}

.info-box {
    border-radius: 6px;
    margin: 0.25rem;
}

.info-box-icon {
    border-radius: 6px 0 0 6px;
}

.card-header[data-toggle="collapse"] {
    transition: 0.3s;
}

.card-header[data-toggle="collapse"] i {
    transition: transform 0.3s;
}

.card-header[data-toggle="collapse"].collapsed i {
    transform: rotate(-90deg);
}

.mb-3 {
    margin-bottom: 0.5rem !important;
}

.secim-click {
    border: none;
    background: transparent;
    color: #6c757d;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 4px;
}

.secim-click i {
    font-size: 0.875rem;
    margin-right: 0.25rem;
}

.ders {
    color: #495057;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.saat {
    color: #adb5bd;
    font-size: 0.8rem;
    font-weight: 500;
}

#dersArama {
    border-radius: 4px;
    border: 1px solid #ced4da;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.select2-container--default .select2-selection--single {
    border-radius: 4px;
    border: 1px solid #ced4da;
    height: 38px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
    color: #495057;
}

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

@media (max-width: 768px) {
    .select2-container {
        width: 100% !important;
    }
    .select2-container .select2-selection--single {
        height: 38px;
        border: 1px solid #ced4da;
        border-radius: 4px;
    }
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 38px;
    }
    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 36px;
    }
    .row.mx-0 {
        margin-left: 0.5rem !important;
        margin-right: 0.5rem !important;
    }
    .info-box {
        margin: 0.25rem 0;
    }
}


/* Breadcrumb Stilleri */

.breadcrumb {
    background: transparent !important;
    padding: 0.35rem 0.75rem !important;
    margin-bottom: 0.5rem !important;
    border-radius: 6px !important;
}

.breadcrumb-item {
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
}

.breadcrumb-item a {
    color: #1976d2 !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
}

.breadcrumb-item a:hover {
    color: #0d47a1 !important;
}

.breadcrumb-item.active a {
    color: #6c757d !important;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "›" !important;
    color: #1976d2 !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    padding: 0 0.35rem !important;
}


/* Ana Menü ve Dropdown Menü Aktif Renkleri */

.nav-sidebar .nav-link {
    color: #ffffff !important;
    padding: 0.7rem 1rem !important;
    transition: all 0.3s ease;
    border-radius: 0;
}

.nav-sidebar .nav-link:hover,
.nav-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-left: none !important;
}

.nav-sidebar .nav-link.active {
    background: rgba(0, 0, 0, 0.1) !important;
}

.nav-sidebar .nav-item .nav-icon {
    color: #ffffff !important;
    opacity: 0.9;
    margin-right: 0.5rem;
}

.nav-sidebar .nav-item:hover .nav-icon,
.nav-sidebar .nav-item .nav-link.active .nav-icon {
    opacity: 1;
}

.nav-sidebar .nav-item .nav-header {
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 0.5rem 1rem !important;
}

.nav-treeview {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    margin: 0.5rem 0;
    padding: 0.5rem 0;
    padding-left: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-treeview .nav-link {
    color: #6c757d;
    padding: 0.5rem 1rem;
    padding-left: 0.75rem;
    font-size: 0.9rem;
    border-radius: 4px;
    margin: 0.2rem 0.5rem;
    transition: all 0.2s ease;
}

.nav-treeview .nav-link:hover,
.nav-treeview .nav-link.active {
    background: rgba(255, 255, 255, 0.15) !important;
}


/* Buton Özelleştirmeleri */

.btn-info {
    background-color: #1976d2 !important;
    border-color: #1976d2 !important;
    color: #ffffff !important;
}

.btn-outline-info {
    color: #1976d2 !important;
    border-color: #e1e8ed !important;
}

.btn-outline-info:hover {
    background-color: #1976d2 !important;
    color: #ffffff !important;
}


/* Math Content Stilleri */

.math-content {
    font-size: 11pt !important;
    font-family: 'Times New Roman', serif !important;
    line-height: 1.6 !important;
}

/* Footer Menü Özel Stilleri - AdminLTE btn-xs'i geçersiz kılmak için */
footer .main-footer .footer-menu .btn-xs,
.footer-menu .btn-xs {
    padding: 0.1rem 0.25rem !important;
    font-size: 0.7rem !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-decoration: none !important;
    color: inherit !important;
    white-space: nowrap !important;
    transition: all 0.3s ease !important;
    border: none !important;
    background: none !important;
    margin: 0 6px !important;
    box-shadow: none !important;
    border-radius: 4px !important;
    line-height: 1 !important;
}

footer .main-footer .footer-menu .btn-xs i,
.footer-menu .btn-xs i {
    font-size: 1.3rem !important;
    line-height: 1 !important;
    transition: all 0.3s ease !important;
    display: block !important;
}

footer .main-footer .footer-menu .btn-xs span,
.footer-menu .btn-xs span {
    font-size: 0.6rem !important;
    line-height: 1 !important;
    display: block !important;
    text-align: center !important;
}

.footer-menu .btn-xs.active {
    color: rgb(9, 76, 100);
    box-shadow: none;
    background: none !important;
}

.footer-menu .btn-xs.active span {
    font-weight: 600;
}

footer .main-footer .footer-menu .scrollmenu,
.footer-menu .scrollmenu {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    padding: 0.1rem !important;
    justify-content: space-between !important;
    align-items: center !important;
    scroll-behavior: smooth !important;
}

.footer-menu .scrollmenu::-webkit-scrollbar {
    display: none;
}

.footer-menu .fixed-menu {
    display: flex;
    padding: 0.1rem;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* 6 menü öğesini eşit dağıt - Bootstrap col sınıfları ile */
.footer-menu .fixed-menu {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}

.footer-menu .fixed-menu > * {
    flex: 1;
    text-align: center;
    min-width: 0;
    padding: 0 1px;
}

/* Menü butonlarının genişliğini eşitle */
.footer-menu .fixed-menu .btn-xs {
    width: 100%;
    max-width: none;
    margin: 0 !important;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 4px;
}

/* Login olmamışsa menüler için özel stil */
.footer-menu .fixed-menu:not(.auth-menu) .btn-xs {
    flex: 1;
    width: 100%;
    max-width: none;
}

/* Her menü öğesi için col-2 sınıfı (6 menü için 12/6 = 2) */
.footer-menu .fixed-menu .col-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
    padding: 0 1px;
}