/* Suggested Notes Style Fix - Match other tile buttons */

/* Override button styles to match standard tile buttons */
[data-section="suggested-actions"] .clean-tile.note .tile-actions .action-btn {
    /* Reset previous styles */
    all: unset;
    
    /* Apply standard tile button styles */
    padding: 0.25rem 0.375rem;
    background-color: rgba(139, 92, 246, 0.25); /* Purple theme for notes */
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 0.25rem;
    color: #c4b5fd; /* Light purple text */
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.15s;
    font-weight: 500;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Pin button (Accept) - green variant */
[data-section="suggested-actions"] .clean-tile.note .tile-actions .pin-btn {
    background-color: rgba(34, 197, 94, 0.25);
    border-color: rgba(34, 197, 94, 0.4);
    color: #86efac;
}

[data-section="suggested-actions"] .clean-tile.note .tile-actions .pin-btn:hover {
    background-color: rgba(34, 197, 94, 0.35);
    border-color: rgba(34, 197, 94, 0.6);
    color: #bbf7d0;
    transform: translateY(-1px);
}

/* Clear button (Reject) - red variant */
[data-section="suggested-actions"] .clean-tile.note .tile-actions .clear-btn {
    background-color: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

[data-section="suggested-actions"] .clean-tile.note .tile-actions .clear-btn:hover {
    background-color: rgba(239, 68, 68, 0.35);
    border-color: rgba(239, 68, 68, 0.6);
    color: #fecaca;
    transform: translateY(-1px);
}

/* Ensure button icon size matches */
[data-section="suggested-actions"] .clean-tile.note .tile-actions .action-btn i {
    font-size: 0.75rem;
}

/* Fix pin icon positioning - should be in the tile icon area like other tiles */
[data-section="suggested-actions"] .clean-tile.note .tile-icon {
    width: 1rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

[data-section="suggested-actions"] .clean-tile.note .tile-icon i {
    font-size: 0.875rem;
    color: #a78bfa; /* Purple to match note theme */
}

/* Ensure header matches other tiles */
[data-section="suggested-actions"] .clean-tile.note .tile-header {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    margin: 0;
}

/* Fix header right section to match other tiles */
[data-section="suggested-actions"] .clean-tile.note .tile-header-right {
    display: flex;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
    position: relative;
    min-width: 7rem;
    justify-content: flex-end;
}

/* Status badge positioning */
[data-section="suggested-actions"] .clean-tile.note .tile-status {
    position: relative;
    right: auto;
    padding: 0.125rem 0.375rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    border-radius: 0.25rem;
    border: 1px solid;
    min-width: 5rem;
    transition: opacity 0.15s ease;
    transition-delay: 0.05s;
}

/* Hide status on hover when buttons appear */
[data-section="suggested-actions"] .clean-tile.note:hover .tile-status {
    opacity: 0;
    transition-delay: 0s;
}

/* Show actions on hover like other tiles */
[data-section="suggested-actions"] .clean-tile.note .tile-actions {
    opacity: 0;
    transition: opacity 0.15s ease;
    transition-delay: 0.05s;
    justify-content: flex-end !important; /* Ensure buttons align to the right */
    position: relative !important;
    z-index: 1 !important;
}

[data-section="suggested-actions"] .clean-tile.note:hover .tile-actions {
    opacity: 1;
    transition-delay: 0.05s;
}

/* Add tooltips to match other buttons */
[data-section="suggested-actions"] .clean-tile.note .action-btn::before {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0);
    padding: 0.375rem 0.5rem;
    background-color: rgba(17, 24, 39, 0.95);
    color: #e5e7eb;
    font-size: 0.75rem;
    font-weight: 400;
    white-space: nowrap;
    border-radius: 0.25rem;
    border: 1px solid rgba(75, 85, 99, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

[data-section="suggested-actions"] .clean-tile.note .action-btn:hover::before {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

/* Tooltip arrow */
[data-section="suggested-actions"] .clean-tile.note .action-btn::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid rgba(17, 24, 39, 0.95);
    pointer-events: none;
    opacity: 0;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

[data-section="suggested-actions"] .clean-tile.note .action-btn:hover::after {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}