/* Öğrenci Otomasyon Sistemi - Ana Stil Dosyası */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #dee2e6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: #212529;
}

.live-lesson-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 1.5rem;
    min-height: 70vh;
}

.live-video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    background: #111;
    border-radius: .75rem;
    padding: 1rem;
    min-height: 360px;
    max-height: 560px;
    overflow-y: auto;
}

.live-video-grid::-webkit-scrollbar {
    width: 8px;
}

.live-video-grid::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}

.participant-tile {
    position: relative;
    width: 100%;
    min-height: 220px;
    background: #000;
    border-radius: .65rem;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: center;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.25);
}

.participant-tile.local-participant {
    outline: 2px solid rgba(13, 110, 253, 0.4);
}

.participant-tile.screen-share-tile {
    border: 2px dashed rgba(13, 110, 253, 0.6);
    background: #0b2239;
}

.participant-tile.hand-raised {
    outline: 2px solid rgba(255, 193, 7, 0.6);
}

.participant-tile .video-wrapper {
    position: relative;
    flex: 1;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.participant-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: .65rem;
}

.participant-video.screen-share-video {
    object-fit: contain;
    background: #000;
}

.participant-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: .5rem .75rem;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    color: #fff;
    font-size: .85rem;
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.participant-name {
    font-weight: 600;
    letter-spacing: 0.2px;
}

.participant-role {
    font-size: .75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.participant-tile.audio-muted .participant-meta::after {
    content: '🔇';
    margin-left: auto;
    font-size: 1rem;
}

.participant-tile.video-muted .video-wrapper {
    background: rgba(0, 0, 0, 0.85);
}

.participant-tile.video-muted .video-wrapper::after {
    content: 'Kamera kapalı';
    color: rgba(255, 255, 255, 0.85);
    font-size: .9rem;
    letter-spacing: 0.4px;
    display: block;
}

.participant-tile.media-error .video-wrapper::after {
    content: 'Kamera erişimi reddedildi';
    color: rgba(255, 166, 0, 0.9);
    font-size: .85rem;
    text-align: center;
    padding: 0 1rem;
    display: block;
}

.live-sidebar {
    background: #fff;
    border-radius: .75rem;
    box-shadow: 0 0.25rem 1rem rgba(17, 24, 39, 0.08);
    overflow: hidden;
}

.live-sidebar header {
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
    color: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.live-sidebar .content {
    padding: 1rem 1.5rem;
}

.live-controls {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.live-controls button {
    flex: 1;
}

.whiteboard-section {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #fff;
    border-radius: .75rem;
    box-shadow: 0 0.25rem 1rem rgba(17, 24, 39, 0.08);
}

.whiteboard-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .75rem;
}

.whiteboard-toolbar button {
    min-width: 36px;
}

.whiteboard-toolbar.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.whiteboard-canvas-wrapper {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: .75rem;
    background: #f8f9fa;
    overflow: hidden;
    min-height: 320px;
    max-height: 520px;
}

.whiteboard-canvas-wrapper .whiteboard-screen {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    border-radius: .75rem;
    z-index: 1;
}

.whiteboard-canvas-wrapper canvas {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
}

.whiteboard-info {
    font-size: .8rem;
    color: #6c757d;
    margin-top: .5rem;
}

.participant-list {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: .75rem;
    background: #fff;
    max-height: 280px;
    overflow-y: auto;
    padding: .5rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.participant-list::-webkit-scrollbar {
    width: 6px;
}

.participant-list::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.participant-empty {
    text-align: center;
    padding: 1rem 0;
    color: #6c757d;
    font-size: .85rem;
}

.participant-item {
    border: 1px solid rgba(13, 110, 253, 0.05);
    border-radius: .6rem;
    padding: .5rem .65rem;
    background: #f8f9fa;
    transition: background-color .2s ease, border-color .2s ease;
}

.participant-item.is-local {
    border-color: rgba(13, 110, 253, 0.35);
}

.participant-item.hand-raised {
    background: rgba(255, 193, 7, 0.12);
    border-color: rgba(255, 193, 7, 0.4);
}

.participant-main {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: center;
}

.participant-info {
    flex: 1;
    min-width: 0;
}

.participant-name {
    font-weight: 600;
    font-size: .95rem;
    color: var(--text-color, #212529);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.participant-item.hand-raised .participant-name {
    color: #b78103;
}

.participant-status {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .95rem;
}

.participant-actions {
    margin-top: .4rem;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.chat-panel {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: .75rem;
    padding: .75rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-height: 400px;
}

.chat-message-list {
    flex: 1;
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: .65rem;
    padding: .5rem;
    background: #f8f9fa;
    min-height: 160px;
    max-height: 220px;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.chat-message-list::-webkit-scrollbar {
    width: 6px;
}

.chat-message-list::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.chat-empty {
    text-align: center;
    font-size: .85rem;
    color: #6c757d;
}

.chat-message {
    background: #fff;
    border-radius: .65rem;
    padding: .5rem .65rem;
    box-shadow: 0 0.125rem 0.4rem rgba(12, 26, 75, 0.05);
}

.chat-message-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .25rem;
}

.chat-message-name {
    font-weight: 600;
    font-size: .9rem;
    color: #0d6efd;
}

.chat-message-role {
    font-size: .75rem;
    color: #6c757d;
    margin-left: .35rem;
}

.chat-message-time {
    font-size: .75rem;
    color: #adb5bd;
}

.chat-message-body {
    font-size: .88rem;
    color: #212529;
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-message-emoji {
    font-size: 1.6rem;
    text-align: center;
}

.chat-emoji-panel {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    padding: .5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: .65rem;
    background: #fff;
}

.chat-emoji-panel .emoji-item {
    font-size: 1.4rem;
    line-height: 1;
}

@media (max-width: 992px) {
    .live-lesson-container {
        grid-template-columns: 1fr;
    }
    .whiteboard-canvas-wrapper {
        min-height: 240px;
    }
}

/* Navbar Stilleri */
.navbar {
    border-bottom: 2px solid var(--border-color);
}

.navbar-brand {
    font-size: 1.25rem;
    color: var(--primary-color) !important;
}

/* Timeline/Shoulder Calendar Styles */
.timeline-calendar {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: hidden;
}

.timeline-header {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.timeline-header-cell {
    padding: 12px 8px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-header-cell:last-child {
    border-right: none;
}

.timeline-body {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    min-height: 600px;
    position: relative;
}

.timeline-time-slot {
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 4px 8px;
    font-size: 0.75rem;
    color: #6c757d;
    background: #f8f9fa;
    position: relative;
    min-height: 40px;
}

.timeline-day-column {
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    min-height: 40px;
    background: var(--white);
}

.timeline-day-column:last-child {
    border-right: none;
}

.timeline-lesson-block {
    position: absolute;
    left: 4px;
    right: 4px;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 0.8rem;
    color: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 30px;
}

.timeline-lesson-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 20;
}

.timeline-lesson-block .lesson-title {
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-lesson-block .lesson-time {
    font-size: 0.7rem;
    opacity: 0.9;
}

.timeline-lesson-block .lesson-teacher {
    font-size: 0.65rem;
    opacity: 0.8;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-lesson-block .lesson-room {
    font-size: 0.65rem;
    opacity: 0.8;
    margin-top: 1px;
}

/* Ders renkleri */
.lesson-color-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.lesson-color-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.lesson-color-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.lesson-color-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.lesson-color-5 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.lesson-color-6 { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }
.lesson-color-7 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); color: #333 !important; }
.lesson-color-8 { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); color: #333 !important; }
.lesson-color-9 { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); color: #333 !important; }
.lesson-color-10 { background: linear-gradient(135deg, #ff8a80 0%, #ea6100 100%); }

.timeline-view-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
}

.timeline-view-toggle .btn {
    border-radius: 6px;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline-calendar {
        font-size: 0.85rem;
    }
    
    .timeline-header {
        grid-template-columns: 60px repeat(7, 1fr);
    }
    
    .timeline-body {
        grid-template-columns: 60px repeat(7, 1fr);
    }
    
    .timeline-time-slot {
        font-size: 0.7rem;
        padding: 2px 4px;
    }
    
    .timeline-lesson-block {
        font-size: 0.7rem;
        padding: 4px 6px;
    }
}

/* Event Timeline Calendar Styles */
.event-timeline-calendar {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: hidden;
}

.event-timeline-header {
    display: grid;
    grid-template-columns: 100px repeat(31, 1fr);
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    min-width: 1200px;
}

.event-timeline-header-cell {
    padding: 10px 4px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
}

.event-timeline-header-cell:last-child {
    border-right: none;
}

.event-timeline-body {
    display: grid;
    grid-template-columns: 100px repeat(31, 1fr);
    min-height: 400px;
    position: relative;
    min-width: 1200px;
}

.event-timeline-day-column {
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    min-height: 60px;
    background: var(--white);
}

.event-timeline-day-column:last-child {
    border-right: none;
}

.event-timeline-day-label {
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 4px;
    font-size: 0.75rem;
    color: #6c757d;
    background: #f8f9fa;
    font-weight: 600;
    text-align: center;
}

.event-timeline-event-block {
    position: absolute;
    left: 2px;
    right: 2px;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 0.75rem;
    color: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 40px;
    margin-bottom: 2px;
}

.event-timeline-event-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 20;
}

.event-timeline-event-block .event-title {
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-timeline-event-block .event-time {
    font-size: 0.7rem;
    opacity: 0.9;
}

.event-timeline-event-block .event-location {
    font-size: 0.65rem;
    opacity: 0.8;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Event type colors */
.event-type-genel { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.event-type-sinif_bazli { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.event-type-okul_geneli { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.event-type-acil { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

/* Monthly view controls */
.month-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--white);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.month-navigation .month-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.month-navigation .btn-group {
    display: flex;
    gap: 0.5rem;
}

/* Responsive Event Timeline */
@media (max-width: 1200px) {
    .event-timeline-calendar {
        font-size: 0.8rem;
    }
    
    .event-timeline-header {
        grid-template-columns: 80px repeat(31, 1fr);
        min-width: 1000px;
    }
    
    .event-timeline-body {
        grid-template-columns: 80px repeat(31, 1fr);
        min-width: 1000px;
    }
    
    .event-timeline-event-block {
        font-size: 0.7rem;
        padding: 4px 6px;
    }
}

/* Exam Timeline Calendar Styles */
.exam-timeline-calendar {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: hidden;
}

.exam-timeline-header {
    display: grid;
    grid-template-columns: 100px repeat(31, 1fr);
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    min-width: 1200px;
}

.exam-timeline-header-cell {
    padding: 10px 4px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
}

.exam-timeline-header-cell:last-child {
    border-right: none;
}

.exam-timeline-body {
    display: grid;
    grid-template-columns: 100px repeat(31, 1fr);
    min-height: 400px;
    position: relative;
    min-width: 1200px;
}

.exam-timeline-day-column {
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    min-height: 60px;
    background: var(--white);
}

.exam-timeline-day-column:last-child {
    border-right: none;
}

.exam-timeline-day-label {
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 4px;
    font-size: 0.75rem;
    color: #6c757d;
    background: #f8f9fa;
    font-weight: 600;
    text-align: center;
}

.exam-timeline-exam-block {
    position: absolute;
    left: 2px;
    right: 2px;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 0.75rem;
    color: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 40px;
    margin-bottom: 2px;
}

.exam-timeline-exam-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 20;
}

.exam-timeline-exam-block .exam-title {
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.exam-timeline-exam-block .exam-time {
    font-size: 0.7rem;
    opacity: 0.9;
}

.exam-timeline-exam-block .exam-duration {
    font-size: 0.65rem;
    opacity: 0.8;
    margin-top: 2px;
}

/* Exam type colors */
.exam-type-yazili { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.exam-type-test { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.exam-type-karisik { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.exam-type-online { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

/* Exam level colors */
.exam-level-ilkokul { border-left: 4px solid #28a745; }
.exam-level-ortaokul { border-left: 4px solid #17a2b8; }
.exam-level-lise { border-left: 4px solid #ffc107; }
.exam-level-universite { border-left: 4px solid #dc3545; }

/* Responsive Exam Timeline */
@media (max-width: 1200px) {
    .exam-timeline-calendar {
        font-size: 0.8rem;
    }
    
    .exam-timeline-header {
        grid-template-columns: 80px repeat(31, 1fr);
        min-width: 1000px;
    }
    
    .exam-timeline-body {
        grid-template-columns: 80px repeat(31, 1fr);
        min-width: 1000px;
    }
    
    .exam-timeline-exam-block {
        font-size: 0.7rem;
        padding: 4px 6px;
    }
}

/* Digital Clock Styles */
.digital-clock {
    text-align: right;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    min-width: 180px;
}

.clock-date {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clock-time {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .digital-clock {
        min-width: 140px;
        padding: 0.4rem 0.8rem;
    }
    
    .clock-date {
        font-size: 0.65rem;
    }
    
    .clock-time {
        font-size: 0.9rem;
    }
}

/* Advanced Timeline Styles */
.advanced-timeline-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.advanced-timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    animation: timelinePulse 3s ease-in-out infinite;
}

@keyframes timelinePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.advanced-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.advanced-timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.advanced-timeline-title i {
    animation: rotate360 2s linear infinite;
}

@keyframes rotate360 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.advanced-timeline-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.advanced-timeline-filters .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

.advanced-timeline-scroll {
    overflow-x: auto;
    overflow-y: visible;
    padding: 0px 0 1rem 0;
    position: relative;
    min-height: 320px;
}

.advanced-timeline-track {
    position: relative;
    min-height: 400px;
    padding: 0;
    margin: 0;
    width: 2880px; /* 24 saat * 120px */
}

/* Zaman çizgisi - saat bazlı grid (YATAY - COMPACT) */
.advanced-timeline-time-axis {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    display: flex;
    flex-direction: row;
    border-bottom: 2px solid var(--border-color);
    z-index: 1;
    background: #f8f9fa;
}

.advanced-timeline-hour-marker {
    flex: 0 0 80px;
    border-right: 1px solid var(--border-color);
    position: relative;
    height: 100%;
}

.advanced-timeline-hour-label {
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 600;
    background: var(--white);
    padding: 1px 3px;
}

.advanced-timeline-minute-line {
    position: absolute;
    top: 0;
    background: #ccc;
    z-index: 1;
}

.advanced-timeline-now-indicator {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #dc3545;
    z-index: 100;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
    animation: pulseRed 2s ease-in-out infinite;
    /* Yatay timeline için: left pozisyonu kullanılacak, top ve bottom sabit */
}

@keyframes pulseRed {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px rgba(220, 53, 69, 0.5); }
    50% { opacity: 0.7; box-shadow: 0 0 20px rgba(220, 53, 69, 0.8); }
}

.advanced-timeline-item {
    position: absolute;
    min-width: 150px;
    max-width: 200px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 0.85rem;
    /* Yatay timeline için: left ve top kullanılacak */
}

/* Açılır grup kartı (COMPACT) */
.advanced-timeline-group-card {
    position: absolute;
    min-width: 150px;
    max-width: 200px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    font-size: 0.85rem;
}

.timeline-group-header {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    transition: background 0.2s ease;
}

.timeline-group-header:hover {
    background: #e9ecef;
}

.timeline-group-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

.timeline-group-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #6c757d;
    flex: 1;
}

.timeline-group-toggle {
    color: #6c757d;
    transition: transform 0.3s ease;
}

.timeline-group-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.timeline-group-content.expanded {
    max-height: 800px;
}

.timeline-group-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    transition: background 0.2s ease;
}

.timeline-group-item:last-child {
    border-bottom: none;
}

.timeline-group-item:hover {
    background: #f8f9fa;
}

.timeline-group-item .timeline-item-type {
    position: static;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.timeline-group-item .timeline-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-group-item .timeline-item-details {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.timeline-group-item .timeline-item-status {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
}

.advanced-timeline-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.advanced-timeline-item.read-only {
    cursor: default;
}

.advanced-timeline-item.read-only:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border-color);
}

.timeline-item-type {
    position: absolute;
    top: -10px;
    right: 10px;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-item-type.ders-programi {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.timeline-item-type.etkinlik {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.timeline-item-type.canli-ders {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.timeline-item-type.sinav {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.timeline-item-time {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-item-time i {
    color: var(--primary-color);
}

.timeline-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.timeline-item-details {
    font-size: 0.8rem;
    color: var(--secondary-color);
    line-height: 1.5;
}

.timeline-item-status {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.timeline-item-status.active {
    background: #d4edda;
    color: #155724;
}

.timeline-item-status.upcoming {
    background: #fff3cd;
    color: #856404;
}

.timeline-item-status.completed {
    background: #d1ecf1;
    color: #0c5460;
}

/* Activity Tracker Styles */
.activity-tracker-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.activity-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.activity-list .table {
    font-size: 0.9rem;
}

.activity-list .table td {
    vertical-align: middle;
    padding: 0.5rem;
}

.activity-tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.activity-tracker-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activity-list {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.activity-item:hover {
    background: var(--light-bg);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-user {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.activity-action {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.activity-time {
    font-size: 0.75rem;
    color: var(--secondary-color);
    white-space: nowrap;
    flex-shrink: 0;
}

.activity-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
    animation: pulseGreen 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulseGreen {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* Card Stilleri - Compact ve Profesyonel */
.card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: var(--white);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* Sidebar Navigation */
.sidebar-wrapper {
    background-color: var(--light-bg);
    padding: 1rem 1rem 1rem 1.5rem;
    min-height: calc(100vh - 76px);
    border-right: 1px solid var(--border-color);
}

.sidebar-fixed {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    z-index: 100;
}

/* Mobil Sidebar */
@media (max-width: 991.98px) {
    .sidebar-wrapper {
        position: fixed;
        left: -100%;
        top: 76px;
        width: 280px;
        height: calc(100vh - 76px);
        z-index: 1000;
        background-color: var(--light-bg);
        transition: left 0.3s ease;
        overflow-y: auto;
        padding: 1rem;
    }
    
    .sidebar-wrapper.show {
        left: 0;
    }
    
    .sidebar-fixed {
        position: relative;
        top: 0;
    }
    
    .main-content-wrapper {
        padding-left: 0 !important;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
}

.sidebar-card {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid var(--border-color);
}

.main-content-wrapper {
    background-color: var(--light-bg);
    min-height: calc(100vh - 76px);
    padding-left: 0 !important;
}

.nav-link {
    padding: 0.75rem 1rem;
    color: #495057;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.nav-link:hover {
    background-color: var(--light-bg);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateX(3px);
}

.nav-link.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-left-color: var(--primary-color);
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2);
}

.nav-link i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* Badge Stilleri */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
}

/* Button Stilleri */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

/* Table Stilleri */
.table {
    background-color: var(--white);
}

.table thead {
    background-color: var(--light-bg);
}

.table thead th {
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: #495057;
}

/* Form Stilleri */
.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border-radius: 6px;
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Alert Stilleri */
.alert {
    border-radius: 6px;
    border: none;
}

/* Metric Cards */
.metric-card {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.metric-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-icon {
    font-size: 2.5rem;
    opacity: 0.2;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Responsive */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .metric-card {
        margin-bottom: 1rem;
    }
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Profil Fotoğrafı */
.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-photo-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

/* Print Styles */
/* Bildirim Merkezi Stilleri */
.notification-dropdown {
    padding: 0 !important;
}

.notification-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: var(--light-bg);
}

.notification-item.unread {
    background-color: #e7f3ff;
    font-weight: 500;
}

.notification-item.unread:hover {
    background-color: #d0e7ff;
}

.notification-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.25rem;
}

.notification-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #212529;
    flex: 1;
}

.notification-item-time {
    font-size: 0.75rem;
    color: #6c757d;
    white-space: nowrap;
    margin-left: 0.5rem;
}

.notification-item-message {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
    line-height: 1.4;
}

.notification-item-type {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.notification-item-type.odev {
    background-color: #cfe2ff;
    color: #084298;
}

.notification-item-type.sinav {
    background-color: #fff3cd;
    color: #664d03;
}

.notification-item-type.etkinlik {
    background-color: #d1e7dd;
    color: #0f5132;
}

.notification-item-type.kutuphane {
    background-color: #d0e7ff;
    color: #084298;
}

.notification-item-type.canli_ders {
    background-color: #f8d7da;
    color: #842029;
}

.notification-item-type.sistem {
    background-color: #e2e3e5;
    color: #41464b;
}

.notification-item-type.mesaj {
    background-color: #cff4fc;
    color: #055160;
}

.notification-empty {
    padding: 2rem;
    text-align: center;
    color: #6c757d;
}

.notification-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* Mesajlaşma Sistemi Stilleri */
.emoji-picker {
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
    padding: 10px;
}

.emoji-item {
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    text-align: center;
    border-radius: 5px;
    transition: background 0.2s;
}

.emoji-item:hover {
    background: #f0f0f0;
}

.gif-item {
    cursor: pointer;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.2s;
}

.gif-item:hover {
    transform: scale(1.05);
}

.gif-item img {
    width: 100%;
    height: auto;
    display: block;
}

@media print {
    .navbar, .sidebar, .btn, .no-print {
        display: none !important;
    }
}

