/* Genel body ayarları */
body {
    background-color:rgb(222, 221, 221);
    font-family: Verdana;
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column; /* Sayfayı dikeyde hizala */
}

/* Yan navbar için tasarım */
.side-navbar {
    width: 250px;
    height: 100vh; /* Tam yükseklik */
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, #4b79a1, #283e51);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1; /* Navbar'ın üstte görünmesini sağla */
    transform: translateX(0); /* Masaüstünde görünür */
    transition: transform 0.3s ease-in-out;
}

/* Mobilde yan menüyü gizle */
.side-navbar.hide {
    transform: translateX(-100%); /* Menü ekran dışında */
}

/* Menü ikonunun görünümü */
.menu-icon {
    display: none; /* Varsayılan olarak gizle */
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: #4b79a1;
    color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1100;
    cursor: pointer;
}

.menu-icon i {
    font-size: 24px;
}

/* Mobilde yan menü görünür */
.side-navbar.show {
    transform: translateX(0); /* Menü tekrar görünür */
}

/* Yan navbar linkleri */
.side-navbar .nav-link {
    color: white;
    width: 90%;
    text-align: left;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.side-navbar .nav-link:hover {
    background: #f39c12;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.7);
}

.side-navbar .nav-link i {
    margin-right: 10px;
}

.side-navbar .nav-link.active {
    background-color: #f1c40f; /* Sarı renk */
    color: #000; /* Siyah metin */
    font-weight: bold; /* Kalın metin */
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.8); /* Hafif bir ışık efekti */
}

/* İçerik alanı */
.content {
    margin-left: 250px; /* Yan navbar'ın genişliği kadar boşluk */
    flex-grow: 1; /* İçeriğin esnek şekilde büyümesine olanak tanır */
    padding: 2rem;
    padding-top: 10px;
    padding-bottom: 60px; /* Footer ile çakışmaması için padding */
    box-sizing: border-box;
    min-height: calc(100vh - 80px); /* Sayfa içeriği, navbar ve footer hariç tüm ekranı kapsar */
}

/* Footer için stil */
footer {
    background: linear-gradient(180deg, #4b79a1, #283e51); /* Navbar ile aynı renk */
    color: white;
    text-align: center;
    padding: 23px 0;
    font-size: 12px;
    width: 100%;
    position: relative;
    bottom: 0;
    margin-top: auto; /* Footer'ın alt kısma yerleşmesi için */
}

/* Carousel görsellerinin ayarlanması */
.carousel-item img {
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
    max-width: 80%;
    margin: 0 auto;
    display: block !important;
}

.slider {
    width: 50%;
    height: 580px;
}

/* Popup ve card stil ayarları */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Task listesi stil */
#taskList .list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

form label {
    margin-bottom: 10px;
    font-weight: bold;
}

/* Görev listesi stil */
#result {
    border: 2px solid #4b79a1;
    padding: 15px;
    border-radius: 10px;
}

/* Takvim stil */
table th, table td {
    vertical-align: middle;
    text-align: center;
    font-size: 16px;
}

.card-header {
    font-weight: bold;
    text-transform: uppercase;
}

#calendarTable th, #calendarTable td {
    background-color: #c4d2e0;
}

#downloadCalendar {
    margin-top: 20px;
}

.calendarTable2 {
    height: 150px;
    overflow-y: auto;
    border-radius: 5px;
    padding: 10px;
}

/* Mobil tasarım */
@media (max-width: 768px) {
    .content {
        margin-left: 0;
        padding-top: 96px;
    }

    .menu-icon {
        display: block;
    }

    .side-navbar {
        transform: translateX(-100%);
    }

    .card-body {
        overflow-x: auto;
        white-space: nowrap;
    }

    .card {
        width: auto;
        min-width: 350px;
    }
}

/* Masaüstü görünüm */
@media (min-width: 769px) {
    .menu-icon {
        display: none;
    }

    .side-navbar {
        transform: translateX(0);
    }
}

/* Asistanlar ve Hocalar Sayfaları için özgü stil */
#asistantCards .card, #hocalarCards .card, #bolumlerCards .card {
    width: 70%;
    margin: 10px auto;
    padding: 8px;
}

#asistantCards .card-body, #hocalarCards .card-body, #bolumlerCards .card-body {
    padding: 8px;
}

#asistantCards .card-img-top, #hocalarCards .card-img-top, #bolumlerCards .card-img-top {
    width: 100%;
    height: auto;
}

#asistantCards .col-md-4, #hocalarCards .col-md-4, #bolumlerCards .col-md-4 {
    padding: 3px;
}

#asistantCards .card-title, #hocalarCards .card-title, #bolumlerCards .card-title {
    font-size: 1.2rem;
}

#asistantCards .card-text, #hocalarCards .card-text, #bolumlerCards .card-text {
    font-size: 0.9rem;
}

#asistantCards .btn, #hocalarCards .btn, #bolumlerCards .btn {
    font-size: 0.85rem;
}

/* Renk düzenlemeleri */
.card-header.bg-primary {
    background-color: #4b79a1 !important;
    color: white !important;
}

.btn-primary {
    background-color: #4b79a1 !important;
    border-color: #4b79a1 !important;
}

.btn-primary:hover {
    background-color: #283e51 !important;
    border-color: #283e51 !important;
}
