/**
 * Randevu Yönetim Sistemi - Özel CSS Dosyası
 */

:root {
    --primary-color: #4e73df;
    --secondary-color: #6c757d;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fc;
    font-size: 0.95rem;
    color: #5a5c69;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Ana içerik alanı */
main {
    flex: 1 0 auto;
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
}

.navbar .dropdown-menu {
    font-size: 0.85rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 0;
}

.navbar .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
}

.navbar .navbar-nav .nav-link.active {
    font-weight: 600;
}

.notification-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Kartlar */
.card {
    border: 0;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
}

.card-header {
    padding: 0.75rem 1.25rem;
    margin-bottom: 0;
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
}

.card-header:first-child {
    border-radius: calc(0.35rem - 1px) calc(0.35rem - 1px) 0 0;
}

/* Butonlar */
.btn {
    font-size: 0.85rem;
    border-radius: 0.35rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

/* Form elemanları */
.form-control, .form-select {
    font-size: 0.95rem;
    border-radius: 0.35rem;
    border: 1px solid #d1d3e2;
}

.form-control:focus, .form-select:focus {
    border-color: #bac8f3;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #5a5c69;
}

/* Tablolar */
.table {
    font-size: 0.9rem;
}

.table th {
    font-weight: 600;
    background-color: #f8f9fc;
}

.table-hover tbody tr:hover {
    background-color: rgba(78, 115, 223, 0.05);
}

/* Randevu Durumları ve Renkleri */
.status-badge {
    font-size: 0.75rem;
    padding: 0.25em 0.75em;
    border-radius: 20px;
}

.priority-low {
    background-color: #6c757d;
    color: white;
}

.priority-normal {
    background-color: #36b9cc;
    color: white;
}

.priority-high {
    background-color: #f6c23e;
    color: #5a5c69;
}

.priority-urgent {
    background-color: #e74a3b;
    color: white;
}

/* Takvim Görünümü */
.calendar-day {
    min-height: 120px;
    position: relative;
    background-color: #fff;
    border: 1px solid #e3e6f0;
}

.calendar-day-header {
    background-color: #f8f9fc;
    padding: 5px;
    text-align: center;
    font-weight: bold;
}

.calendar-day.today {
    background-color: #e8f4ff;
}

.calendar-day.outside-month {
    background-color: #f8f9fc;
    color: #b7b9cc;
}

.calendar-event {
    padding: 2px 5px;
    margin: 2px;
    border-radius: 3px;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

/* Randevu Detay Sayfası */
.appointment-detail-header {
    background-color: #4e73df;
    color: white;
    padding: 1.5rem;
    border-radius: 0.35rem 0.35rem 0 0;
}

.appointment-meta {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    padding: 0.75rem 1.25rem;
}

.appointment-meta-item {
    display: inline-block;
    margin-right: 1.5rem;
}

.appointment-meta-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.appointment-meta-value {
    font-weight: 600;
}

/* Duyarlı Tasarım */
@media (max-width: 768px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .calendar-day {
        min-height: 80px;
    }
}

/* Animasyonlar */
.fade-in {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Ek Bileşenler */
.loading-spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    vertical-align: text-bottom;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner 0.75s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Özel Tooltip */
.custom-tooltip {
    position: relative;
    display: inline-block;
}

.custom-tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #5a5c69;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.custom-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Düğme Grupları */
.btn-group-xs > .btn, .btn-xs {
    padding: .25rem .4rem;
    font-size: .75rem;
    line-height: 1;
    border-radius: .2rem;
}

/* Vurgu Efekti */
.highlight {
    background-color: rgba(78, 115, 223, 0.1);
    border-left: 4px solid #4e73df;
    padding-left: 1rem;
}

/* Sayfa Giriş Animasyonu */
.page-enter {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.page-enter-active {
    opacity: 1;
    transform: translateY(0);
}

/* Zaman Çizelgesi */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e3e6f0;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-badge {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #4e73df;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-panel {
    width: 45%;
    float: left;
    position: relative;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.timeline-panel::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -10px;
    width: 20px;
    height: 20px;
    background-color: #fff;
    transform: rotate(45deg);
    border-right: 1px solid #e3e6f0;
    border-top: 1px solid #e3e6f0;
}

.timeline-item:nth-child(even) .timeline-panel {
    float: right;
}

.timeline-item:nth-child(even) .timeline-panel::before {
    left: -10px;
    right: auto;
    border-left: 1px solid #e3e6f0;
    border-bottom: 1px solid #e3e6f0;
    border-right: 0;
    border-top: 0;
}

/* Mobil cihazlar için zaman çizelgesi ayarı */
@media (max-width: 768px) {
    .timeline-panel {
        width: 85%;
        float: right;
    }
    
    .timeline-line {
        left: 40px;
    }
    
    .timeline-badge {
        left: 40px;
    }
    
    .timeline-panel::before {
        left: -10px;
        right: auto;
        border-left: 1px solid #e3e6f0;
        border-bottom: 1px solid #e3e6f0;
        border-right: 0;
        border-top: 0;
    }
}