/* Modern, Premium Vardiya Takvimi CSS */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --vt-bg-dark: #0f172a;
    --vt-card-bg: rgba(30, 41, 59, 0.7);
    --vt-border-color: rgba(255, 255, 255, 0.08);
    --vt-text-primary: #f8fafc;
    --vt-text-secondary: #94a3b8;
    --vt-accent-color: #3b82f6;
    --vt-font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --vt-shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

.vt-calendar-container {
    font-family: var(--vt-font-family);
    background: var(--vt-bg-dark);
    background-image: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 40%), 
                      radial-gradient(circle at 90% 80%, rgba(231, 76, 60, 0.05) 0%, transparent 40%);
    color: var(--vt-text-primary);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--vt-border-color);
    box-shadow: var(--vt-shadow-lg);
    max-width: 500px;
    margin: 30px auto;
    backdrop-filter: blur(16px);
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Takvim Başlığı */
.vt-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.vt-month-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
    color: var(--vt-text-primary) !important;
}

.vt-btn-nav {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--vt-text-primary);
    cursor: pointer;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.vt-btn-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.vt-btn-nav:active {
    transform: scale(0.95);
}

/* Gün İsimleri */
.vt-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 13px;
    color: var(--vt-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Takvim Gün Hücreleri */
.vt-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 25px;
}

.vt-day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    user-select: none;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.vt-day-cell:hover:not(.vt-empty) {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vt-day-cell.vt-empty {
    background: transparent;
    border: none;
    cursor: default;
}

/* Vardiyalı Gün Stilleri */
.vt-day-cell.vt-shift-day {
    color: #ffffff;
    font-weight: 600;
}

/* Vardiya Arka Planı */
.vt-day-cell.vt-shift-day::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background-color: var(--shift-color);
    opacity: 0.85;
    z-index: 1;
    transition: opacity 0.2s ease, transform 0.25s ease;
}

.vt-day-cell.vt-shift-day span {
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Günlerin Parlama / Odak Efekti (Efsaneden seçildiğinde) */
.vt-day-cell.vt-shift-day.vt-highlighted::before {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--shift-color);
}

.vt-day-cell.vt-shift-day.vt-dimmed {
    opacity: 0.25;
}

/* Bugün İşareti */
.vt-day-cell.vt-today {
    border: 2.5px solid #ffffff;
    animation: vt-pulse-border 2s infinite;
}

/* Benim Vardiyam İşareti (Kullanıcının Seçtiği) */
.vt-day-cell.vt-my-shift-day {
    outline: 2px dashed rgba(255, 255, 255, 0.7);
    outline-offset: -4px;
}

.vt-day-cell.vt-my-shift-day::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 5px;
    height: 5px;
    background: #ffffff;
    border-radius: 50%;
    z-index: 3;
}

/* Animasyonlar */
@keyframes vt-pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Efsane / Legend */
.vt-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--vt-border-color);
}

.vt-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
}

.vt-legend-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.vt-legend-color {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background-color: var(--shift-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Bilgi Paneli */
.vt-selected-detail {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--vt-border-color);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vt-detail-prompt {
    font-size: 13.5px;
    color: var(--vt-text-secondary);
    margin: 0;
    font-style: italic;
}

.vt-detail-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    width: 100%;
}

.vt-detail-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--vt-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vt-detail-badge {
    font-size: 16px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    color: #ffffff;
    background-color: var(--shift-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: inline-block;
}

/* Benim Vardiyam Seçici */
.vt-user-shift-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(59, 130, 246, 0.04);
    border: 1px dashed rgba(59, 130, 246, 0.2);
    padding: 15px;
    border-radius: 12px;
}

.vt-user-shift-selector label {
    font-size: 14px;
    font-weight: 600;
    color: var(--vt-text-primary);
}

.vt-user-shift-selector select {
    background: #1e293b;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: border 0.2s ease;
}

.vt-user-shift-selector select:focus {
    border-color: var(--vt-accent-color);
}

.vt-my-shift-help {
    font-size: 12px;
    color: var(--vt-text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Responsive Düzenlemeler */
@media (max-width: 480px) {
    .vt-calendar-container {
        padding: 20px 15px;
        margin: 15px auto;
        border-radius: 15px;
    }
    
    .vt-month-title {
        font-size: 18px;
    }
    
    .vt-day-cell {
        font-size: 14px;
        border-radius: 8px;
    }
    
    .vt-day-cell.vt-shift-day::before {
        border-radius: 8px;
    }
    
    .vt-legend-item {
        font-size: 12px;
        padding: 4px 8px;
    }
}

.vt-calendar-container {
    zoom: 0.8; /* Varsayılan boyutu 1'dir. Bunu 0.8 yaparak tüm takvimi %80 boyutuna çeker. */
}
