/* 今日の日付表示セクションのスタイル */
.today-section {
    padding: 0 1rem;
}

.today-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.today-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.today-title {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #007bff;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.today-display-container {
    position: relative;
    margin-bottom: 1rem;
}

.today-date {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin-bottom: 0.5rem;
}

.today-date.server-date {
    opacity: 1;
    transform: translateY(0);
}

.today-date.client-date {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    width: 100%;
}

.today-date.client-date.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.today-date.server-date.hidden {
    opacity: 0;
    transform: translateY(-10px);
}

.timezone-info {
    margin-bottom: 1.5rem;
}

.today-timezone {
    color: #666;
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

.timezone-label {
    margin-right: 0.5rem;
}

.timezone-value {
    font-weight: 600;
    color: #007bff;
    transition: opacity 0.3s ease;
}

.timezone-value.server-timezone {
    opacity: 1;
}

.timezone-value.client-timezone {
    opacity: 0;
}

.timezone-value.client-timezone.active {
    opacity: 1;
}

.timezone-value.server-timezone.hidden {
    opacity: 0;
}

.calendar-events-preview {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.calendar-events-preview.show {
    opacity: 1;
    transform: translateY(0);
}

.calendar-header h2 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

.calendar-meta {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1rem;
}

.calendar-event {
    background: white;
    border: 1px solid #e9ecef;
    border-left: 4px solid #007bff;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    transition: border-left-color 0.2s ease, box-shadow 0.2s ease;
}

.calendar-event:last-child {
    margin-bottom: 0;
}

.calendar-event:hover {
    border-left-color: #0056b3;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

.event-time {
    color: #007bff;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-title {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.3rem 0;
}

.event-description {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.calendar-footer {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.calendar-footer p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

.no-events {
    color: #666;
    font-style: italic;
    text-align: center;
    margin: 0;
    padding: 2rem 0;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin-top: 1rem;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #666;
    font-size: 0.9rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .today-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .today-title {
        font-size: 1.3rem;
    }
    
    .today-date {
        font-size: 1.8rem;
    }
    
    .today-timezone {
        font-size: 0.9rem;
    }
    
    .calendar-events-preview {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .today-card {
        padding: 1rem;
    }
    
    .today-title {
        font-size: 1.2rem;
    }
    
    .today-date {
        font-size: 1.5rem;
    }
    
    .event-time {
        font-size: 0.8rem;
    }
    
    .event-title {
        font-size: 0.95rem;
    }
    
    .event-description {
        font-size: 0.85rem;
    }
}