:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #198754;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 56px;
}

.main-content {
    min-height: calc(100vh - 300px);
}

.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 50%, #084298 100%);
    color: white;
    padding: 100px 0;
    margin-bottom: 50px;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.25rem;
    opacity: 0.9;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    border-bottom: none;
    font-weight: 600;
}

.faculty-card {
    border-left: 4px solid var(--primary-color);
}

.department-card {
    border-left: 4px solid var(--accent-color);
}

.course-card {
    border-left: 4px solid var(--secondary-color);
}

.exchange-card {
    border-left: 4px solid #ffc107;
}

.stats-card {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
}

.stats-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stats-card .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.stats-card .label {
    font-size: 1rem;
    color: var(--secondary-color);
}

.breadcrumb-container {
    background-color: var(--light-color);
    padding: 15px 0;
    margin-bottom: 30px;
}

.course-info-table th {
    width: 40%;
    background-color: var(--light-color);
}

.semester-badge {
    font-size: 0.85rem;
    padding: 5px 15px;
}

.ects-badge {
    background-color: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
}

.credit-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color);
}

.tab-content {
    padding: 20px;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
}

.learning-outcome-item {
    padding: 15px;
    background-color: var(--light-color);
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.learning-outcome-item .number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 15px;
    flex-shrink: 0;
}

.weekly-topic-item {
    padding: 10px 15px;
    border-left: 3px solid var(--primary-color);
    background-color: var(--light-color);
    margin-bottom: 8px;
    border-radius: 0 5px 5px 0;
}

.weekly-topic-item .week {
    font-weight: 600;
    color: var(--primary-color);
}

.exchange-program-section {
    padding: 40px 0;
}

.exchange-program-section:nth-child(even) {
    background-color: var(--light-color);
}

.admin-sidebar {
    background-color: var(--dark-color);
    min-height: calc(100vh - 56px);
    padding: 20px 0;
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    overflow-y: auto;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 0;
    white-space: nowrap;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.admin-sidebar .nav-link i {
    width: 24px;
    text-align: center;
    margin-right: 10px;
}

.admin-sidebar .text-muted {
    color: rgba(255, 255, 255, 0.45) !important;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding-left: 20px;
    padding-right: 20px;
    cursor: default;
}

.admin-sidebar .text-muted:hover {
    background: none !important;
    color: rgba(255, 255, 255, 0.45) !important;
}

.admin-content {
    padding: 30px;
    min-width: 0;
    overflow-x: hidden;
}

.admin-stat-card {
    padding: 25px;
    border-radius: 10px;
    color: white;
    text-align: center;
}

.admin-stat-card.bg-primary { background: linear-gradient(135deg, #0d6efd, #0a58ca); }
.admin-stat-card.bg-success { background: linear-gradient(135deg, #198754, #157347); }
.admin-stat-card.bg-warning { background: linear-gradient(135deg, #ffc107, #ffca2c); color: #212529; }
.admin-stat-card.bg-info { background: linear-gradient(135deg, #0dcaf0, #0aa2c0); }

.admin-stat-card .number {
    font-size: 2.5rem;
    font-weight: 700;
}

.admin-stat-card .label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.table-action-btn {
    padding: 5px 10px;
    font-size: 0.85rem;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
}

.login-card {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.login-header {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: white;
    text-align: center;
    padding: 30px;
}

.login-header i {
    font-size: 3rem;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .stats-card .number {
        font-size: 2rem;
    }
}

/* ═══════════ Aday Öğrenci Chatbot ═══════════ */
#sc-chat { position: fixed; bottom: 24px; right: 24px; z-index: 1080; font-family: inherit; }

#sc-chat-toggle {
    display: flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #0d6efd, #084298);
    color: #fff; border: none; border-radius: 50px;
    padding: 14px 22px; font-size: 1rem; font-weight: 600;
    box-shadow: 0 6px 20px rgba(13,110,253,.4); cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
#sc-chat-toggle:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(13,110,253,.5); }
#sc-chat-toggle i { font-size: 1.25rem; }
#sc-chat-toggle.sc-active .sc-chat-toggle-label { display: none; }
#sc-chat-toggle.sc-active { padding: 16px; border-radius: 50%; }

#sc-chat-panel {
    position: absolute; bottom: 72px; right: 0;
    width: 380px; max-width: calc(100vw - 32px);
    height: 560px; max-height: calc(100vh - 120px);
    background: #fff; border-radius: 18px;
    box-shadow: 0 16px 48px rgba(0,0,0,.22);
    display: flex; flex-direction: column; overflow: hidden;
    animation: scChatIn .22s ease;
}
@keyframes scChatIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
#sc-chat-panel.sc-hidden { display: none; }
/* Genel gizleme: kayıt formu / mesaj alanı / öneriler bu sınıfla gizlenir */
#sc-chat .sc-hidden { display: none !important; }
/* Sohbet başlayınca cevaplar için daha geniş alan */
#sc-chat-panel.sc-expanded { width: 460px; height: 640px; }

.sc-chat-header {
    background: linear-gradient(135deg, #0d6efd, #084298); color: #fff;
    padding: 14px 16px; display: flex; align-items: center; justify-content: space-between;
}
.sc-chat-header-title { display: flex; align-items: center; gap: 10px; }
.sc-chat-header-title i { font-size: 1.6rem; }
.sc-chat-header-title strong { display: block; font-size: .98rem; line-height: 1.2; }
.sc-chat-header-title small { font-size: .72rem; opacity: .85; }
#sc-chat-close { background: rgba(255,255,255,.18); border: none; color: #fff; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; }
#sc-chat-close:hover { background: rgba(255,255,255,.32); }

.sc-chat-uni { padding: 10px 14px; border-bottom: 1px solid #eef0f3; background: #f8f9fa; }
.sc-chat-uni label { font-size: .72rem; font-weight: 600; color: #555; margin-bottom: 3px; display: flex; align-items: center; gap: 5px; }

#sc-chat-messages { flex: 1; overflow-y: auto; padding: 14px; background: #f4f6f9; }
.sc-msg { display: flex; margin-bottom: 12px; }
.sc-msg-user { justify-content: flex-end; }
.sc-msg-bubble {
    max-width: 82%; padding: 10px 13px; border-radius: 14px;
    font-size: .88rem; line-height: 1.45; white-space: normal; word-wrap: break-word;
}
.sc-msg-bot .sc-msg-bubble { background: #fff; color: #222; border-bottom-left-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.sc-msg-user .sc-msg-bubble { background: linear-gradient(135deg, #0d6efd, #0a58ca); color: #fff; border-bottom-right-radius: 4px; }

.sc-typing { display: flex; gap: 4px; align-items: center; }
.sc-typing span { width: 7px; height: 7px; border-radius: 50%; background: #aaa; animation: scBlink 1.2s infinite; }
.sc-typing span:nth-child(2) { animation-delay: .2s; }
.sc-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes scBlink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

#sc-chat-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px; border-top: 1px solid #eef0f3; }
.sc-chip {
    background: #eef4ff; color: #0d6efd; border: 1px solid #d4e3ff;
    border-radius: 50px; padding: 5px 12px; font-size: .76rem; cursor: pointer; transition: background .15s;
}
.sc-chip:hover { background: #dceaff; }

#sc-chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 14px; border-top: 1px solid #eef0f3; }
#sc-chat-input {
    flex: 1; border: 1px solid #d6dae0; border-radius: 12px; padding: 9px 12px;
    font-size: .88rem; resize: none; outline: none; max-height: 110px; font-family: inherit;
}
#sc-chat-input:focus { border-color: #0d6efd; box-shadow: 0 0 0 3px rgba(13,110,253,.12); }
#sc-chat-send {
    background: linear-gradient(135deg, #0d6efd, #084298); color: #fff; border: none;
    width: 42px; height: 42px; border-radius: 12px; cursor: pointer; flex-shrink: 0; font-size: 1.05rem;
}
#sc-chat-send:hover { filter: brightness(1.08); }
#sc-chat-send:disabled { opacity: .55; cursor: not-allowed; }
.sc-chat-foot { font-size: .66rem; color: #9aa0a6; text-align: center; padding: 0 14px 8px; }

@media (max-width: 480px) {
    #sc-chat { bottom: 16px; right: 16px; }
    #sc-chat-panel { height: calc(100vh - 100px); }
}

/* Chatbot kayıt formu */
#sc-chat-register { padding: 16px 16px 14px; overflow-y: auto; flex: 1; background: #f4f6f9; }
.sc-reg-intro { font-size: .9rem; color: #333; margin-bottom: 14px; line-height: 1.45; }
.sc-reg-field { margin-bottom: 10px; }
.sc-reg-field label { font-size: .76rem; font-weight: 600; color: #555; margin-bottom: 3px; display: block; }
.sc-reg-error { color: #dc3545; font-size: .78rem; margin: 4px 0 10px; min-height: 1em; }
#sc-reg-submit { margin-top: 4px; }
