/* Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
}

body {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    /* Temiz, modern gri-beyaz geçiş */
    background-color: #f0f4f8;
    /* Yedek renk */
    color: #2d3436;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Main Layout Grid */
.main-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr) minmax(0, 1fr);
    /* Oranlar: %22 - %56 - %22 */
    height: 100vh;
    gap: 25px;
    padding: 25px;
    overflow: hidden;
    /* Taşmayı engelle */
}

/* Columns */
.col-left,
.col-middle,
.col-right {
    display: flex;
    flex-direction: column;
    gap: 25px;
    height: 100%;
}

/* Panels */
.panel {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Çok yumuşak gölge */
    overflow: hidden;
    position: relative;
    border: none;
    transition: transform 0.3s ease;
}

.panel-header {
    padding: 15px 20px;
    font-size: 1.3rem;
    font-weight: 800;
    /* Nunito Bold */
    text-align: center;
    color: white;
    letter-spacing: 0.5px;
    border-radius: 20px 20px 0 0;
    /* Sadece üst köşeler */
}

.panel-content {
    padding: 20px;
    height: calc(100% - 55px);
    overflow-y: hidden;
    position: relative;
    background: #fff;
}

/* Sol Sütun Renkleri (Turuncu & Sarı) */
.col-left .panel:nth-child(1) .panel-header {
    background: linear-gradient(45deg, #FF9800, #F57C00);
    /* Canlı Turuncu */
    box-shadow: 0 4px 15px rgba(245, 124, 0, 0.3);
}

.col-left .panel:nth-child(2) .panel-header {
    background: linear-gradient(45deg, #FFC107, #FFB300);
    /* Tatlı Sarı */
    color: #5D4037;
    /* Sarı üstüne kahverengi yazı okunur */
    box-shadow: 0 4px 15px rgba(255, 179, 0, 0.3);
}

/* Orta Sütun Renkleri (Mavi & İndigo) */
.col-middle .panel:nth-child(1) .panel-header {
    background: linear-gradient(45deg, #42A5F5, #1E88E5);
    /* Parlak Mavi */
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
}

.col-middle .panel:nth-child(2) {
    background: transparent;
    /* Slider paneli şeffaf */
    box-shadow: none;
    border-radius: 20px;
}

.col-middle .panel:nth-child(3) .panel-header {
    background: #5C6BC0;
    /* İndigo */
}

/* Sağ Sütun Renkleri (Mor & Camgöbeği) */
.col-right .panel:nth-child(1) .panel-header {
    background: transparent;
    color: #444;
    box-shadow: none;
    padding: 10px;
}

.col-right .panel:nth-child(2) .panel-header {
    background: linear-gradient(45deg, #26C6DA, #00ACC1);
    /* Camgöbeği */
    box-shadow: 0 4px 15px rgba(0, 172, 193, 0.3);
}

.col-right .panel:nth-child(3) .panel-header {
    background: linear-gradient(45deg, #AB47BC, #8E24AA);
    /* Mor */
    box-shadow: 0 4px 15px rgba(142, 36, 170, 0.3);
}

/* Yükseklik Ayarları (Dengeli) */
.col-left .panel:nth-child(1) {
    height: 48%;
}

/* Haftanın Öğrencisi */
.col-left .panel:nth-child(2) {
    height: 48%;
}

/* Doğum Günleri */

.col-middle .panel:nth-child(1) {
    height: 18%;
}

/* Nöbetçiler */
.col-middle .panel:nth-child(2) {
    height: 60%;
}

/* Slider */
.col-middle .panel:nth-child(3) {
    height: 18%;
}

/* Duyuru */

.col-right .panel:nth-child(1) {
    height: 15%;
    background: transparent;
    box-shadow: none;
}

/* Logo */
.col-right .panel:nth-child(2) {
    height: 35%;
}

/* Hava */
.col-right .panel:nth-child(3) {
    height: 46%;
}

/* Etkinlik */


/* Components Style */

/* Logo Box */
.logo-box {
    display: flex;
    flex-direction: row;
    /* Yan yana */
    align-items: center;
    justify-content: center;
    gap: 15px;
    height: 100%;
}

.logo-box img {
    max-height: 70px;
}

.logo-box h1 {
    font-size: 1.4rem;
    font-weight: 900;
    color: #D84315;
    text-transform: uppercase;
    line-height: 1.2;
}

/* Student Card (Modern & Playful) */
.student-card {
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.student-card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #FFCCBC;
    /* Yumuşak çerçeve */
    margin-bottom: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.student-info h2 {
    font-size: 1.6rem;
    color: #E65100;
    margin-bottom: 5px;
}

.student-info p {
    font-size: 1.1rem;
    color: #795548;
    background: #FFF3E0;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
}

/* Teachers (Pill Design) */
.duty-teachers-list {
    display: flex;
    justify-content: space-between;
    height: 100%;
    align-items: center;
    gap: 10px;
}

.teacher-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    background: #E3F2FD;
    padding: 10px;
    border-radius: 12px;
    flex: 1;
    /* Eşit genişlik */
    width: 0;
    /* İçerik taşmasını engeller, flex ile eşitler */
    border-left: 4px solid #2196F3;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    height: 100%;
    /* Yükseklik eşitle */
}

.teacher-item img {
    width: 55px;
    /* Daha büyük görsel */
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #BBDEFB;
    flex-shrink: 0;
    /* Görsel sıkışmasın */
}

.teacher-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
    overflow: hidden;
    /* Taşma olursa gizle */
}

.t-name {
    font-size: 0.9rem;
    color: #1565C0;
    font-weight: 700;
}

.t-surname {
    font-size: 0.95rem;
    /* Soyisim daha vurgulu */
    color: #0D47A1;
    font-weight: 900;
    text-transform: uppercase;
}

.t-place {
    font-size: 0.8rem;
    color: #546E7A;
    margin-top: 3px;
    font-weight: 600;
}

/* Slider & Info */
.slider-container {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    /* Slider öne çıksın */
}

.slider-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slider-container img.active {
    opacity: 1;
}

.info-slider-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    background: linear-gradient(135deg, #7E57C2, #5C6BC0);
    color: white;
    font-size: 1.3rem;
    border-radius: 20px;
    padding: 0 20px;
}

/* Weather Widget - Modern */
.weather-widget {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    /* Canlı Mavi-Cyan */
    height: 100%;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Üstten başlat */
    padding: 15px 15px 40px 15px;
    /* Alt boşluk (Bottom Padding) artırıldı */
    position: relative;
    overflow: hidden;
}

/* Dekoratif Arkaplan Baloncukları - Aynen kalıyor */
.weather-widget::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    z-index: 0;
}

.weather-widget::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.weather-header {
    text-align: center;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    padding: 10px;
    border-radius: 15px;
    font-weight: 800;
    margin-bottom: 0;
    /* Header alt boşluk kapandı */
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.weather-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    /* Boşluk sıfırlandı */
    text-align: center;
    z-index: 1;
    flex-grow: 1;
    margin-top: auto;
    margin-bottom: auto;
}

.weather-icon img {
    width: 160px;
    height: 160px;
    max-width: 100%;
    /* Taşmayı engelle */
    filter: drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.2));
    animation: floatWeather 3s ease-in-out infinite;
    margin-bottom: -20px;
    /* İkon ile derece arasını kısaltma */
}

@keyframes floatWeather {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.weather-info h2 {
    font-size: 2.5rem;
    /* Küçültüldü (3 -> 2.5) */
    color: white;
    margin: 0;
    /* Margin sıfırlandı */
    line-height: 1;
    font-weight: 900;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.15);
}

.weather-info p {
    font-size: 1.1rem;
    /* Küçültüldü (1.4 -> 1.1) */
    opacity: 1;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    /* Padding azaltıldı */
    border-radius: 15px;
    margin-top: 8px;
    /* Durum ile derece arasına boşluk */
    display: inline-block;
}

/* Events & Birthdays List */
.events-list {
    list-style: none;
    list-style: none;
    overflow-y: hidden;
    /* Otomatik kaydırma için gizle */
    height: 100%;
    padding-right: 5px;
}

.events-list li {
    background: #FAFAFA;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 12px;
    border-left: 5px solid #AB47BC;
    /* Mor çizgi */
    display: flex;
    flex-direction: row;
    /* Yan yana */
    justify-content: space-between;
    /* Sağa yasla */
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.col-left .events-list li {
    border-left-color: #FFC107;
}

/* Doğum günleri sarı */

.event-date {
    font-weight: 800;
    color: #444;
    font-size: 0.9rem;
}

.event-title {
    color: #555;
    font-size: 1rem;
}