/**
 * Doktor Randevu Sistemi - Ana CSS Dosyası
 */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card {
    border-radius: 10px;
    overflow: hidden;
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-bottom: none;
    padding: 15px 20px;
}

.card-body {
    padding: 25px;
}

.btn {
    border-radius: 5px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.form-control {
    border-radius: 5px;
    padding: 10px 15px;
    height: auto;
    border: 1px solid #ddd;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #555;
}

.alert {
    border-radius: 5px;
    border: none;
    padding: 15px 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

footer {
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* Admin Panel Styles */
.sidebar {
    background-color: #343a40;
    color: #fff;
    min-height: calc(100vh - 56px);
    padding-top: 20px;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 10px 20px;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: all 0.3s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

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

.content-wrapper {
    padding: 20px;
}

.dashboard-card {
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.dashboard-card .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.dashboard-card .count {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.dashboard-card .title {
    font-size: 18px;
    color: #ffffff;
}

.table {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.table td {
    vertical-align: middle;
}

.badge {
    padding: 6px 10px;
    font-weight: 500;
    border-radius: 30px;
}

/* Login Page */
.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.login-form {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.login-form .logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-form h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
}

/* Haftalık Randevu Takvimi Stilleri */
.time-slot {
    width: 30px;
    height: 30px;
    min-width: 30px;
    max-width: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid #28a745;
    background-color: transparent;
    color: #28a745;
    font-size: 12px;
    padding: 0;
    box-sizing: border-box;
}

.time-slot-gray {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #dee2e6;
    background-color: transparent;
    color: #dee2e6;
    font-size: 12px;
    cursor: default;
}

.time-slot-holiday {
    width: 35px;
    height: 35px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #856404;
    font-size: 12px;
    cursor: help;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
}

.time-slot-holiday:hover {
    background-color: #ffeaa7;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Özel Gün Tooltip Stilleri */
#custom-tooltip {
    position: absolute;
    z-index: 9999;
    pointer-events: none;
    animation: fadeIn 0.2s ease-in;
}

.special-day-tooltip {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    max-width: 250px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.tooltip-header {
    font-weight: 600;
    font-size: 14px;
    color: #495057;
    margin-bottom: 4px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 4px;
}

.tooltip-type {
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 500;
}

.tooltip-description {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
    margin-top: 6px;
    font-style: italic;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.time-slot-disabled {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #adb5bd;
    background-color: #f8f9fa;
    color: #adb5bd;
    font-size: 12px;
    cursor: not-allowed;
    opacity: 0.6;
}

.time-slot-booked {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #dc3545;
    background-color: #ffe6e6;
    color: #dc3545;
    font-size: 12px;
    cursor: not-allowed;
}

.time-slot:hover {
    background-color: #28a745;
    color: white;
    transform: scale(1.1);
}

.time-slot.selected {
    background-color: #28a745;
    color: white;
    border-color: #1e7e34;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.25);
}

.time-slot:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.25);
}

/* Takvim container'ı için sabit yükseklik */
.weekly-schedule-container {
    min-height: 500px;
    position: relative;
}

.loading-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

#weekly-schedule table {
    font-size: 14px;
    margin-bottom: 0;
}

#weekly-schedule th {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    font-weight: 600;
    padding: 12px 8px;
    vertical-align: middle;
}

#weekly-schedule td {
    border-color: #dee2e6;
    padding: 2px;
    vertical-align: middle;
    text-align: center;
}

#weekly-schedule .bg-primary {
    background-color: #007bff !important;
}

.week-navigation {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

#week-range {
    font-weight: normal !important;
    font-size: 14px;
    text-align: center;
}

.alert-date-time {
    margin-bottom: 15px;
    border-radius: 8px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 15px;
    }
    
    .btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .table-responsive {
        font-size: 12px;
    }
    
    .navbar-brand {
        font-size: 18px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .dashboard-card .icon {
        font-size: 36px;
    }
    
    .dashboard-card .count {
        font-size: 28px;
    }
    
    .dashboard-card .title {
        font-size: 16px;
    }
    
    .time-slot {
        width: 25px;
        height: 25px;
        min-width: 25px;
        max-width: 25px;
        font-size: 10px;
        padding: 0;
        box-sizing: border-box;
    }
    
    .time-slot-gray {
        width: 25px;
        height: 25px;
        font-size: 10px;
    }
    
    .time-slot-disabled {
        width: 25px;
        height: 25px;
        font-size: 10px;
    }
    
    .time-slot-holiday {
        width: 25px;
        height: 25px;
        font-size: 10px;
        margin: 0;
        padding: 0;
    }
    
    #weekly-schedule th,
    #weekly-schedule td {
        padding: 4px 2px;
        font-size: 11px;
    }
    
    #weekly-schedule th {
        line-height: 1.2;
    }
    
    #weekly-schedule th div {
        font-weight: bold;
        margin-bottom: 2px;
    }
    
    #weekly-schedule th small {
        font-size: 10px;
        opacity: 0.8;
    }
    
    #week-range {
        font-size: 14px;
    }
    
    #prev-week,
    #next-week {
        font-size: 12px;
        padding: 5px 10px;
    }
}