.horizontal-date-picker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(59, 59, 59, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    z-index: 50;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.date-picker-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0 10px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-snap-type: x mandatory;
}

.date-picker-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.date-item {
    flex: 0 0 auto;
    padding: 8px 12px;
    margin: 0 4px;
    text-align: center;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #f8f8f8;
    min-width: 80px;
    user-select: none;
    scroll-snap-align: center;
}

.date-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.date-item.selected {
    background-color: #4a89dc;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.date-item .day-name {
    font-size: 0.8rem;
    opacity: 0.8;
    display: block;
}

.date-item .day-number {
    font-size: 1.2rem;
    font-weight: bold;
    display: block;
}

.date-item .month-name {
    font-size: 0.7rem;
    display: block;
}

.date-item .month-year-name {
    font-size: 0.7rem;
    display: block;
    font-weight: bold;
    margin-top: 2px;
}

.date-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(74, 137, 220, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 51;
}

.date-nav-button:hover {
    background-color: rgba(74, 137, 220, 1);
}

.date-nav-prev {
    left: 10px;
}

.date-nav-next {
    right: 10px;
}

/* Month row styles */
.month-row-container {
    display: flex;
    flex-direction: column;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0 10px;
    margin-bottom: 8px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.month-row-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.year-row {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
    position: relative;
}

.today-button {
    position: absolute;
    left: 10px;
    padding: 4px 12px;
    background-color: rgba(74, 137, 220, 0.8);
    color: white;
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.today-button:hover {
    background-color: rgba(74, 137, 220, 1);
}

.year-item {
    padding: 4px 16px;
    margin: 0 8px;
    text-align: center;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #f8f8f8;
    font-size: 1rem;
    font-weight: bold;
}

.year-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.year-item.selected {
    background-color: #4a89dc;
    color: white;
}

.month-row {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.month-row::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.month-item {
    flex: 0 0 auto;
    padding: 4px 12px;
    margin: 0 4px;
    text-align: center;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #f8f8f8;
    min-width: 60px;
    font-size: 0.8rem;
    position: relative;
}

.month-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.month-item.selected {
    background-color: #4a89dc;
    color: white;
}

.month-item .year-label {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    background-color: rgba(74, 137, 220, 0.8);
    padding: 2px 6px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .date-item {
        min-width: 60px;
        padding: 6px 8px;
    }
    
    .date-item .day-number {
        font-size: 1rem;
    }
    
    .month-item {
        min-width: 50px;
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}
