/* Date Actions Button Group Styling */
.date-actions-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.date-actions-group {
    display: inline-flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.date-action-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: none;
    background-color: transparent;
    color: #6c757d;
    transition: all 0.2s ease;
    border-radius: 0.375rem;
}

.date-action-btn:hover {
    background-color: #fff;
    color: #0d6efd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.date-action-btn:active {
    transform: scale(0.95);
}

.date-action-btn.date-shift-btn {
    font-size: 1.25rem;
}

.date-action-btn.date-preset-toggle {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.date-action-btn.date-preset-toggle:hover {
    background-color: #0d6efd;
    color: #fff;
}

.date-action-btn.date-preset-toggle.show {
    background-color: #0d6efd;
    color: #fff;
}

/* Date Presets Dropdown */
.date-presets-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.5rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-width: 340px;
    z-index: 1000;
}

.date-presets-table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.date-presets-table thead th {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-bottom: 1px solid #e9ecef;
}

.date-presets-table tbody td {
    padding: 0.25rem;
}

.date-preset-item {
    display: block;
    padding: 0.5rem 1rem;
    color: #495057;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.15s ease;
    font-size: 0.875rem;
}

.date-preset-item:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
    text-decoration: none;
}

.date-preset-item:active {
    background-color: #e9ecef;
}

/* Column Styling */
.date-presets-table thead th:nth-child(1) {
    color: #6c757d;
}

.date-presets-table thead th:nth-child(2) {
    color: #198754;
}

.date-presets-table thead th:nth-child(3) {
    color: #0d6efd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .date-actions-group {
        padding: 0.125rem;
    }
    
    .date-action-btn {
        width: 2rem;
        height: 2rem;
    }
    
    .date-presets-dropdown {
        min-width: 300px;
    }
    
    .date-preset-item {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }
}

/* Animation for dropdown */
.date-presets-dropdown.show {
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Tooltip styling for date action buttons */
.date-action-btn[title] {
    position: relative;
}

.date-action-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.5rem;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 0.75rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    animation: tooltipFadeIn 0.2s ease-out 0.3s forwards;
}

@keyframes tooltipFadeIn {
    to {
        opacity: 1;
    }
}